diff options
author | Oleksandr Khoshaba <Oleksandr.Khoshaba@gmail.com> | 2013-08-27 01:37:27 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-09-03 10:27:59 -0400 |
commit | 7b8335589035b47504f98c1a22547f514386a48c (patch) | |
tree | d9402732b416364611d468311df9d6cb7f37d501 /drivers/scsi/qla2xxx/qla_isr.c | |
parent | 963ba22b90a955363644cd397b20226928eab976 (diff) |
[SCSI] qla2xxx: Print some variables to hexadecimal string via %*phN format
The patch changes a specifier used to output some variables. Instead of using
stack for each byte the '%*ph[CN]' allows to take a one pointer and prints
entire buffer as a hexadecimal string with the separator ':' or ''.
Signed-off-by: Oleksandr Khoshaba <Oleksandr.Khoshaba@gmail.com>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_isr.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_isr.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c index 2d8e7b812352..e779506fda75 100644 --- a/drivers/scsi/qla2xxx/qla_isr.c +++ b/drivers/scsi/qla2xxx/qla_isr.c | |||
@@ -2212,16 +2212,13 @@ check_scsi_status: | |||
2212 | out: | 2212 | out: |
2213 | if (logit) | 2213 | if (logit) |
2214 | ql_dbg(ql_dbg_io, fcport->vha, 0x3022, | 2214 | ql_dbg(ql_dbg_io, fcport->vha, 0x3022, |
2215 | "FCP command status: 0x%x-0x%x (0x%x) " | 2215 | "FCP command status: 0x%x-0x%x (0x%x) nexus=%ld:%d:%d " |
2216 | "nexus=%ld:%d:%d portid=%02x%02x%02x oxid=0x%x " | 2216 | "portid=%02x%02x%02x oxid=0x%x cdb=%10phN len=0x%x " |
2217 | "cdb=%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x len=0x%x " | ||
2218 | "rsp_info=0x%x resid=0x%x fw_resid=0x%x.\n", | 2217 | "rsp_info=0x%x resid=0x%x fw_resid=0x%x.\n", |
2219 | comp_status, scsi_status, res, vha->host_no, | 2218 | comp_status, scsi_status, res, vha->host_no, |
2220 | cp->device->id, cp->device->lun, fcport->d_id.b.domain, | 2219 | cp->device->id, cp->device->lun, fcport->d_id.b.domain, |
2221 | fcport->d_id.b.area, fcport->d_id.b.al_pa, ox_id, | 2220 | fcport->d_id.b.area, fcport->d_id.b.al_pa, ox_id, |
2222 | cp->cmnd[0], cp->cmnd[1], cp->cmnd[2], cp->cmnd[3], | 2221 | cp->cmnd, scsi_bufflen(cp), rsp_info_len, |
2223 | cp->cmnd[4], cp->cmnd[5], cp->cmnd[6], cp->cmnd[7], | ||
2224 | cp->cmnd[8], cp->cmnd[9], scsi_bufflen(cp), rsp_info_len, | ||
2225 | resid_len, fw_resid_len); | 2222 | resid_len, fw_resid_len); |
2226 | 2223 | ||
2227 | if (!res) | 2224 | if (!res) |