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>
This commit is contained in:
parent
b183c19f98
commit
1db9e45c34
1 changed files with 3 additions and 9 deletions
|
@ -360,15 +360,9 @@ static inline void usb_serial_debug_data(int debug,
|
||||||
const char *function, int size,
|
const char *function, int size,
|
||||||
const unsigned char *data)
|
const unsigned char *data)
|
||||||
{
|
{
|
||||||
int i;
|
if (debug)
|
||||||
|
dev_printk(KERN_DEBUG, dev, "%s - length = %d, data = %*ph\n",
|
||||||
if (debug) {
|
function, size, size, data);
|
||||||
dev_printk(KERN_DEBUG, dev, "%s - length = %d, data = ",
|
|
||||||
function, size);
|
|
||||||
for (i = 0; i < size; ++i)
|
|
||||||
printk("%.2x ", data[i]);
|
|
||||||
printk("\n");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Use our own dbg macro */
|
/* Use our own dbg macro */
|
||||||
|
|
Loading…
Add table
Reference in a new issue