diff options
author | Minwoo Im <minwoo.im.dev@gmail.com> | 2019-06-12 15:45:32 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2019-06-21 12:12:37 +0300 |
commit | 5f965f4fd92303066b319db4b4bbdb53cb924582 (patch) | |
tree | 205caf3037a33284ed2defd99d1e927a022d66e8 /drivers/nvme | |
parent | ad795e47cdef078bfd9e48745040d12104005aab (diff) | |
download | linux-5f965f4fd92303066b319db4b4bbdb53cb924582.tar.xz |
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 <minwoo.im.dev@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme')
-rw-r--r-- | drivers/nvme/host/trace.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/trace.h b/drivers/nvme/host/trace.h index 19a18c87fb7b..daaf700eae79 100644 --- a/drivers/nvme/host/trace.h +++ b/drivers/nvme/host/trace.h @@ -105,7 +105,7 @@ TRACE_EVENT(nvme_complete_rq, __entry->status = nvme_req(req)->status; __assign_disk_name(__entry->disk, req->rq_disk); ), - TP_printk("nvme%d: %sqid=%d, cmdid=%u, res=%llu, retries=%u, flags=0x%x, status=%u", + TP_printk("nvme%d: %sqid=%d, cmdid=%u, res=%#llx, retries=%u, flags=0x%x, status=%#x", __entry->ctrl_id, __print_disk_name(__entry->disk), __entry->qid, __entry->cid, __entry->result, __entry->retries, __entry->flags, __entry->status) |