提交 78a629e9 编写于 作者: A Andy Shevchenko 提交者: Greg Kroah-Hartman

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: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 788bfe88
...@@ -299,9 +299,7 @@ static inline void mts_show_command(struct scsi_cmnd *srb) ...@@ -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); MTS_DEBUG( "Command %s (%d bytes)\n", what, srb->cmd_len);
out: out:
MTS_DEBUG( " %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x\n", MTS_DEBUG( " %10ph\n", srb->cmnd);
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]);
} }
#else #else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册