diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-13 12:19:05 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-13 13:14:26 -0400 |
commit | 1db9e45c340213d3b19d456fbf678406c1334959 (patch) | |
tree | 223949a7bd2117843faa64ebdfb70cd51e95dc0a /include/linux/usb | |
parent | b183c19f98f8afee799ee41e062810d6b1c7e123 (diff) |
USB: serial: move usb_serial_debug_data to use %*ph
Now that we have a printk modifier for data streams, use it instead of
rolling our own.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/usb')
-rw-r--r-- | include/linux/usb/serial.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/include/linux/usb/serial.h b/include/linux/usb/serial.h index 86c0b451745..9e9a0a8991e 100644 --- a/include/linux/usb/serial.h +++ b/include/linux/usb/serial.h | |||
@@ -360,15 +360,9 @@ static inline void usb_serial_debug_data(int debug, | |||
360 | const char *function, int size, | 360 | const char *function, int size, |
361 | const unsigned char *data) | 361 | const unsigned char *data) |
362 | { | 362 | { |
363 | int i; | 363 | if (debug) |
364 | 364 | dev_printk(KERN_DEBUG, dev, "%s - length = %d, data = %*ph\n", | |
365 | if (debug) { | 365 | function, size, size, data); |
366 | dev_printk(KERN_DEBUG, dev, "%s - length = %d, data = ", | ||
367 | function, size); | ||
368 | for (i = 0; i < size; ++i) | ||
369 | printk("%.2x ", data[i]); | ||
370 | printk("\n"); | ||
371 | } | ||
372 | } | 366 | } |
373 | 367 | ||
374 | /* Use our own dbg macro */ | 368 | /* Use our own dbg macro */ |