[PATCH 10/13] uss720: Clean up printk()'s in drivers/usb/misc/uss720.c

From: James Nelson
Date: Sat Mar 05 2005 - 18:53:12 EST


Add a KERN_ constant and fix two driver prefixes in the printk()s in
drivers/usb/misc/uss720.c

Signed-off-by: James Nelson <james4765@xxxxxxxxx>

diff -Nurp -x dontdiff-osdl --exclude='*~' linux-2.6.11-mm1-original/drivers/usb/misc/uss720.c linux-2.6.11-mm1/drivers/usb/misc/uss720.c
--- linux-2.6.11-mm1-original/drivers/usb/misc/uss720.c 2005-03-05 13:29:48.000000000 -0500
+++ linux-2.6.11-mm1/drivers/usb/misc/uss720.c 2005-03-05 15:58:13.000000000 -0500
@@ -564,7 +564,7 @@ static int uss720_probe(struct usb_inter
if (!(priv = kmalloc(sizeof(struct parport_uss720_private), GFP_KERNEL)))
return -ENOMEM;
if (!(pp = parport_register_port(0, PARPORT_IRQ_NONE, PARPORT_DMA_NONE, &parport_uss720_ops))) {
- printk(KERN_WARNING "usb-uss720: could not register parport\n");
+ printk(KERN_WARNING "uss720: could not register parport\n");
goto probe_abort;
}

@@ -578,7 +578,7 @@ static int uss720_probe(struct usb_inter
set_1284_register(pp, 2, 0x0c);
/* debugging */
get_1284_register(pp, 0, NULL);
- printk("uss720: reg: %02x %02x %02x %02x %02x %02x %02x\n",
+ printk(KERN_DEBUG "uss720: reg: %02x %02x %02x %02x %02x %02x %02x\n",
priv->reg[0], priv->reg[1], priv->reg[2], priv->reg[3], priv->reg[4], priv->reg[5], priv->reg[6]);

endpoint = &interface->endpoint[2];
@@ -589,7 +589,7 @@ static int uss720_probe(struct usb_inter
uss720_irq, endpoint->bInterval,
pp, &priv->irqhandle);
if (i) {
- printk (KERN_WARNING "usb-uss720: usb_request_irq failed (0x%x)\n", i);
+ printk (KERN_WARNING "uss720: usb_request_irq failed (0x%x)\n", i);
goto probe_abort_port;
}
#endif
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/