USB: ehci-sched.c: remove dbg() usage
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 May 2012 04:33:36 +0000 (21:33 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 May 2012 04:33:36 +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/ehci-sched.c

index ffe8fc3bc7efa91f2ec6c38c1fb19a0bb4c03ea1..cb7667967e5acfa8fc24af90574b415c423f159b 100644 (file)
@@ -2356,7 +2356,8 @@ restart:
                                 * in the previous frame for completions.
                                 */
                                if (q.fstn->hw_prev != EHCI_LIST_END(ehci)) {
-                                       dbg ("ignoring completions from FSTNs");
+                                       ehci_dbg(ehci,
+                                               "ignoring completions from FSTNs\n");
                                }
                                type = Q_NEXT_TYPE(ehci, q.fstn->hw_next);
                                q = q.fstn->fstn_next;
@@ -2439,7 +2440,7 @@ restart:
                                q = *q_p;
                                break;
                        default:
-                               dbg ("corrupt type %d frame %d shadow %p",
+                               ehci_dbg(ehci, "corrupt type %d frame %d shadow %p\n",
                                        type, frame, q.ptr);
                                // BUG ();
                                q.ptr = NULL;