mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-20 19:23:57 +08:00
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>
This commit is contained in:
parent
c9b5560aac
commit
26f588308e
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user