sg_io_v3: print status fields using %#x format specifier
The formerly used format string %02x led to misleading output as there was no clear indication sometimes whether the printed integer was decimal or hexadecimal. * sg_io_v3.c (decode_response): Print status and masked_status fields using %#x format specifier instead of %02x.
This commit is contained in:
parent
90bcf10061
commit
e257082643
@ -126,8 +126,8 @@ decode_response(struct tcb *const tcp, const kernel_ulong_t arg)
|
||||
print_sg_io_buffer(tcp, ptr_to_kulong(sg_io.dxferp),
|
||||
din_len);
|
||||
}
|
||||
tprintf(", status=%02x", sg_io.status);
|
||||
tprintf(", masked_status=%02x", sg_io.masked_status);
|
||||
tprintf(", status=%#x", sg_io.status);
|
||||
tprintf(", masked_status=%#x", sg_io.masked_status);
|
||||
tprintf(", sb[%u]=", sg_io.sb_len_wr);
|
||||
print_sg_io_buffer(tcp, ptr_to_kulong(sg_io.sbp), sg_io.sb_len_wr);
|
||||
tprintf(", host_status=%#x", sg_io.host_status);
|
||||
|
Loading…
Reference in New Issue
Block a user