USB: use %*ph specifier in mikrotek driver
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 29 Dec 2014 12:35:28 +0000 (14:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jan 2015 19:37:18 +0000 (11:37 -0800)
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>
drivers/usb/image/microtek.c

index 37b44b04a70162dfc31bc88cf11050bc962694b3..6431d08c8d9dea8d401400fe21ccf9cf5ce41e14 100644 (file)
@@ -299,9 +299,7 @@ static inline void mts_show_command(struct scsi_cmnd *srb)
        MTS_DEBUG( "Command %s (%d bytes)\n", what, srb->cmd_len);
 
  out:
-       MTS_DEBUG( "  %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x\n",
-              srb->cmnd[0], srb->cmnd[1], srb->cmnd[2], srb->cmnd[3], srb->cmnd[4], srb->cmnd[5],
-              srb->cmnd[6], srb->cmnd[7], srb->cmnd[8], srb->cmnd[9]);
+       MTS_DEBUG( "  %10ph\n", srb->cmnd);
 }
 
 #else