From e95caf5505e937eaccd7d833e8b1399c51812708 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Sat, 7 Jan 2017 21:45:48 +0300 Subject: [PATCH] scsi: print "protocol" and "subprotocol" field names of struct sg_io_v4 * scsi.c (print_sg_io_v4_req): Print field names of struct sg_io_v4.protocol and struct sg_io_v4.subprotocol. --- scsi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scsi.c b/scsi.c index d81da43d..a34a57be 100644 --- a/scsi.c +++ b/scsi.c @@ -133,8 +133,9 @@ print_sg_io_v4_req(struct tcb *const tcp, const kernel_ulong_t arg) return RVAL_DECODED | 1; } + tprints("protocol="); printxval(bsg_protocol, sg_io.protocol, "BSG_PROTOCOL_???"); - tprints(", "); + tprints(", subprotocol="); printxval(bsg_subprotocol, sg_io.subprotocol, "BSG_SUB_PROTOCOL_???"); tprintf(", request[%u]=", sg_io.request_len); print_sg_io_buffer(tcp, sg_io.request, sg_io.request_len); -- 2.40.0