Commit 15c92746 authored by Tyrel Datwyler's avatar Tyrel Datwyler Committed by Martin K. Petersen

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: default avatarTyrel Datwyler <tyreld@linux.vnet.ibm.com>
Reviewed-by: default avatarJohannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 32d6e4b6
...@@ -993,7 +993,7 @@ static void handle_cmd_rsp(struct srp_event_struct *evt_struct) ...@@ -993,7 +993,7 @@ static void handle_cmd_rsp(struct srp_event_struct *evt_struct)
if (unlikely(rsp->opcode != SRP_RSP)) { if (unlikely(rsp->opcode != SRP_RSP)) {
if (printk_ratelimit()) if (printk_ratelimit())
dev_warn(evt_struct->hostdata->dev, dev_warn(evt_struct->hostdata->dev,
"bad SRP RSP type %d\n", rsp->opcode); "bad SRP RSP type %#02x\n", rsp->opcode);
} }
if (cmnd) { if (cmnd) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment