Skip to content

Commit 5f965f4

Browse files
minwooimChristoph Hellwig
authored andcommitted
nvme-trace: print result and status in hex format
The "result" field is in 64bit to be printed out which means it could be like: nvme_complete_rq: nvme0: qid=0, cmdid=0, res=18446612684158962624, etries=0, flags=0x0, status=0 Switch both the result and status field to be printed in hexadecimal format to be easier to read. Signed-off-by: Minwoo Im <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
1 parent ad795e4 commit 5f965f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/nvme/host/trace.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ TRACE_EVENT(nvme_complete_rq,
105105
__entry->status = nvme_req(req)->status;
106106
__assign_disk_name(__entry->disk, req->rq_disk);
107107
),
108-
TP_printk("nvme%d: %sqid=%d, cmdid=%u, res=%llu, retries=%u, flags=0x%x, status=%u",
108+
TP_printk("nvme%d: %sqid=%d, cmdid=%u, res=%#llx, retries=%u, flags=0x%x, status=%#x",
109109
__entry->ctrl_id, __print_disk_name(__entry->disk),
110110
__entry->qid, __entry->cid, __entry->result,
111111
__entry->retries, __entry->flags, __entry->status)

0 commit comments

Comments
 (0)