aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2014-12-29 07:35:28 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-01-09 14:37:18 -0500
commit78a629e95137bb4d39d5e05d03273685401dce06 (patch)
tree756229de08ece4fc1be0d7984db294acf637159b
parent788bfe88d552b89842b028ca78e5451a1e64b21b (diff)
USB: use %*ph specifier in mikrotek driver
There is a %*ph specifier that allows to dump small buffers. This patch converts the code to use the specifier. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/image/microtek.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/image/microtek.c b/drivers/usb/image/microtek.c
index 37b44b04a701..6431d08c8d9d 100644
--- a/drivers/usb/image/microtek.c
+++ b/drivers/usb/image/microtek.c
@@ -299,9 +299,7 @@ static inline void mts_show_command(struct scsi_cmnd *srb)
299 MTS_DEBUG( "Command %s (%d bytes)\n", what, srb->cmd_len); 299 MTS_DEBUG( "Command %s (%d bytes)\n", what, srb->cmd_len);
300 300
301 out: 301 out:
302 MTS_DEBUG( " %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x\n", 302 MTS_DEBUG( " %10ph\n", srb->cmnd);
303 srb->cmnd[0], srb->cmnd[1], srb->cmnd[2], srb->cmnd[3], srb->cmnd[4], srb->cmnd[5],
304 srb->cmnd[6], srb->cmnd[7], srb->cmnd[8], srb->cmnd[9]);
305} 303}
306 304
307#else 305#else