projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9b5560
)
libata-scsi: use %*ph to dump small buffers
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Fri, 6 May 2016 18:40:40 +0000
(21:40 +0300)
committer
Tejun Heo
<tj@kernel.org>
Mon, 9 May 2016 16:30:32 +0000
(12:30 -0400)
Replace custom approach by %*ph specifier to dump small buffers in hex format.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/libata-scsi.c
patch
|
blob
|
history
diff --git
a/drivers/ata/libata-scsi.c
b/drivers/ata/libata-scsi.c
index 90397baaa5f1a2aa12817472977434bdd17e6a90..7bcc870afeaa75406817a96f4262c5e8999f6822 100644
(file)
--- a/
drivers/ata/libata-scsi.c
+++ b/
drivers/ata/libata-scsi.c
@@
-3439,14
+3439,11
@@
static inline void ata_scsi_dump_cdb(struct ata_port *ap,
{
#ifdef ATA_DEBUG
struct scsi_device *scsidev = cmd->device;
- u8 *scsicmd = cmd->cmnd;
- DPRINTK("CDB (%u:%d,%d,%d) %
02x %02x %02x %02x %02x %02x %02x %02x %02x
\n",
+ DPRINTK("CDB (%u:%d,%d,%d) %
9ph
\n",
ap->print_id,
scsidev->channel, scsidev->id, scsidev->lun,
- scsicmd[0], scsicmd[1], scsicmd[2], scsicmd[3],
- scsicmd[4], scsicmd[5], scsicmd[6], scsicmd[7],
- scsicmd[8]);
+ cmd->cmnd);
#endif
}