USB: hid-core.c: remove dbg() usage
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 May 2012 04:32:55 +0000 (21:32 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 May 2012 04:32:55 +0000 (21:32 -0700)
dbg() was a very old USB-specific macro that should no longer
be used. This patch removes it from being used in the driver
and uses dev_dbg() instead.

CC: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/usbhid/hid-core.c

index 4bbb883a3dd2f8aa8442c29b9fb09df6d0376b4b..340d6ae646edc7cdfb5f1cf8e02e8a39f00e12d4 100644 (file)
@@ -203,7 +203,7 @@ static int usbhid_restart_out_queue(struct usbhid_device *usbhid)
                return 0;
 
        if ((kicked = (usbhid->outhead != usbhid->outtail))) {
-               dbg("Kicking head %d tail %d", usbhid->outhead, usbhid->outtail);
+               hid_dbg(hid, "Kicking head %d tail %d", usbhid->outhead, usbhid->outtail);
 
                r = usb_autopm_get_interface_async(usbhid->intf);
                if (r < 0)
@@ -230,7 +230,7 @@ static int usbhid_restart_ctrl_queue(struct usbhid_device *usbhid)
                return 0;
 
        if ((kicked = (usbhid->ctrlhead != usbhid->ctrltail))) {
-               dbg("Kicking head %d tail %d", usbhid->ctrlhead, usbhid->ctrltail);
+               hid_dbg(hid, "Kicking head %d tail %d", usbhid->ctrlhead, usbhid->ctrltail);
 
                r = usb_autopm_get_interface_async(usbhid->intf);
                if (r < 0)