Skip to content

Commit

Permalink
USB: serial: remove dbg() from usb/serial.h
Browse files Browse the repository at this point in the history
Now that all in-kernel users of the dbg() macro are gone, we can remove
it from the include/linux/usb/serial.h file.

Good riddance.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Greg Kroah-Hartman committed Sep 18, 2012
1 parent e8656b0 commit 8276052
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions include/linux/usb/serial.h
Original file line number Diff line number Diff line change
Expand Up @@ -365,14 +365,6 @@ static inline void usb_serial_debug_data(int debug,
function, size, size, data);
}

/* Use our own dbg macro */
#undef dbg
#define dbg(format, arg...) \
do { \
if (debug) \
printk(KERN_DEBUG "%s: " format "\n", __FILE__, ##arg); \
} while (0)

/*
* Macro for reporting errors in write path to avoid inifinite loop
* when port is used as a console.
Expand Down

0 comments on commit 8276052

Please sign in to comment.