diff options
author | Tyrel Datwyler <tyreld@linux.vnet.ibm.com> | 2016-12-07 16:04:36 -0600 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-12-08 17:03:04 -0500 |
commit | 15c9274699e8b6dd4bfd7a205c0dc06653e6400d (patch) | |
tree | d9737cdf5dcca5b7e820c2bfb7f02f8fa6cd0d2a /drivers/scsi/ibmvscsi/ibmvscsi.c | |
parent | 32d6e4b6e4ea589cf46518e99f8e6a25ccef023e (diff) | |
download | linux-15c9274699e8b6dd4bfd7a205c0dc06653e6400d.tar.gz linux-15c9274699e8b6dd4bfd7a205c0dc06653e6400d.tar.bz2 linux-15c9274699e8b6dd4bfd7a205c0dc06653e6400d.zip |
scsi: ibmvscsi: log bad SRP response opcode in hex format
An unrecogonized or unsupported SRP response has its opcode currently
logged in decimal format. Log it in hex format instead so it can easily
be validated against the SRP specs values which are in hex.
Signed-off-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/ibmvscsi/ibmvscsi.c')
-rw-r--r-- | drivers/scsi/ibmvscsi/ibmvscsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/ibmvscsi/ibmvscsi.c b/drivers/scsi/ibmvscsi/ibmvscsi.c index a0ee16f56f58..7752656c3d21 100644 --- a/drivers/scsi/ibmvscsi/ibmvscsi.c +++ b/drivers/scsi/ibmvscsi/ibmvscsi.c @@ -993,7 +993,7 @@ static void handle_cmd_rsp(struct srp_event_struct *evt_struct) if (unlikely(rsp->opcode != SRP_RSP)) { if (printk_ratelimit()) dev_warn(evt_struct->hostdata->dev, - "bad SRP RSP type %d\n", rsp->opcode); + "bad SRP RSP type %#02x\n", rsp->opcode); } if (cmnd) { |