aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2016-05-06 14:40:40 -0400
committerTejun Heo <tj@kernel.org>2016-05-09 12:30:32 -0400
commit26f588308efc7f1834b7ee0b1dd4f9a904f555a3 (patch)
treecc6525e7d32ec727b90fbfc7f42e9c9187bf531e
parentc9b5560aac7aa774143ce16c1fe7e0007dea79e2 (diff)
libata-scsi: use %*ph to dump small buffers
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>
-rw-r--r--drivers/ata/libata-scsi.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c
index 90397baaa5f1..7bcc870afeaa 100644
--- 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,
3439{ 3439{
3440#ifdef ATA_DEBUG 3440#ifdef ATA_DEBUG
3441 struct scsi_device *scsidev = cmd->device; 3441 struct scsi_device *scsidev = cmd->device;
3442 u8 *scsicmd = cmd->cmnd;
3443 3442
3444 DPRINTK("CDB (%u:%d,%d,%d) %02x %02x %02x %02x %02x %02x %02x %02x %02x\n", 3443 DPRINTK("CDB (%u:%d,%d,%d) %9ph\n",
3445 ap->print_id, 3444 ap->print_id,
3446 scsidev->channel, scsidev->id, scsidev->lun, 3445 scsidev->channel, scsidev->id, scsidev->lun,
3447 scsicmd[0], scsicmd[1], scsicmd[2], scsicmd[3], 3446 cmd->cmnd);
3448 scsicmd[4], scsicmd[5], scsicmd[6], scsicmd[7],
3449 scsicmd[8]);
3450#endif 3447#endif
3451} 3448}
3452 3449