[PATCH 7/13] hidcore: Clean up printk()'s indrivers/usb/input/hid-core.c

From: James Nelson
Date: Sat Mar 05 2005 - 18:57:30 EST


Add a KERN_ERR constant and a driver prefix to printk()s needing them in
drivers/usb/input/hid-core.c

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

diff -Nurp -x dontdiff-osdl --exclude='*~' linux-2.6.11-mm1-original/drivers/usb/input/hid-core.c linux-2.6.11-mm1/drivers/usb/input/hid-core.c
--- linux-2.6.11-mm1-original/drivers/usb/input/hid-core.c 2005-03-05 13:29:48.000000000 -0500
+++ linux-2.6.11-mm1/drivers/usb/input/hid-core.c 2005-03-05 15:45:44.000000000 -0500
@@ -1758,12 +1758,12 @@ static int hid_probe(struct usb_interfac
usb_set_intfdata(intf, hid);

if (!hid->claimed) {
- printk ("HID device not claimed by input or hiddev\n");
+ printk (KERN_ERR "HID device not claimed by input or hiddev\n");
hid_disconnect(intf);
return -EIO;
}

- printk(KERN_INFO);
+ printk(KERN_INFO "usbhid: ");

if (hid->claimed & HID_CLAIMED_INPUT)
printk("input");
-
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/