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

2005-03-05 Thread James Nelson
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 <[EMAIL PROTECTED]>

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.0 -0500
+++ linux-2.6.11-mm1/drivers/usb/input/hid-core.c   2005-03-05 
15:45:44.0 -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 [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


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

2005-03-05 Thread James Nelson
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 [EMAIL PROTECTED]

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.0 -0500
+++ linux-2.6.11-mm1/drivers/usb/input/hid-core.c   2005-03-05 
15:45:44.0 -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 [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/