From c78cc6b5c2b3e42b895a0251f02473916a8266da Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Thu, 13 Sep 2012 09:19:05 -0700 Subject: [PATCH] --- yaml --- r: 326009 b: refs/heads/master c: 1db9e45c340213d3b19d456fbf678406c1334959 h: refs/heads/master i: 326007: 47f04c2ba3bd224f9fadf169ea938fe6b6f9a437 v: v3 --- [refs] | 2 +- trunk/include/linux/usb/serial.h | 12 +++--------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/[refs] b/[refs] index d3b560e3a494..3f3a70c3291f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b183c19f98f8afee799ee41e062810d6b1c7e123 +refs/heads/master: 1db9e45c340213d3b19d456fbf678406c1334959 diff --git a/trunk/include/linux/usb/serial.h b/trunk/include/linux/usb/serial.h index 86c0b451745d..9e9a0a8991e4 100644 --- a/trunk/include/linux/usb/serial.h +++ b/trunk/include/linux/usb/serial.h @@ -360,15 +360,9 @@ static inline void usb_serial_debug_data(int debug, const char *function, int size, const unsigned char *data) { - int i; - - if (debug) { - dev_printk(KERN_DEBUG, dev, "%s - length = %d, data = ", - function, size); - for (i = 0; i < size; ++i) - printk("%.2x ", data[i]); - printk("\n"); - } + if (debug) + dev_printk(KERN_DEBUG, dev, "%s - length = %d, data = %*ph\n", + function, size, size, data); } /* Use our own dbg macro */