USB: ohci-dbg.c: remove dbg() usage
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 May 2012 04:33:37 +0000 (21:33 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 May 2012 04:33:37 +0000 (21:33 -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: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-dbg.c

index e4bcb62b930a9ef9e790044255b0d587c890e6c1..31b81f9eacdc90cff804bcb89d4ecefff9a3a16f 100644 (file)
@@ -29,14 +29,14 @@ urb_print(struct urb * urb, char * str, int small, int status)
        unsigned int pipe= urb->pipe;
 
        if (!urb->dev || !urb->dev->bus) {
-               dbg("%s URB: no dev", str);
+               printk(KERN_DEBUG "%s URB: no dev\n", str);
                return;
        }
 
 #ifndef        OHCI_VERBOSE_DEBUG
        if (status != 0)
 #endif
-       dbg("%s %p dev=%d ep=%d%s-%s flags=%x len=%d/%d stat=%d",
+       printk(KERN_DEBUG "%s %p dev=%d ep=%d%s-%s flags=%x len=%d/%d stat=%d\n",
                    str,
                    urb,
                    usb_pipedevice (pipe),