misc: genwqe: Fix misuse of %x
authorFuqian Huang <huangfq.daxian@gmail.com>
Sun, 21 Apr 2019 11:47:48 +0000 (19:47 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Apr 2019 17:53:17 +0000 (19:53 +0200)
The pointer should be printed with %p or %px rather than
cast to long long type and printed with %016llx.
Change %x to %p to print the pointer.

Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/genwqe/card_debugfs.c

index 7c713e01d198f605550a2f67846eafe649414030..6f7e39f07811a053c8a4c3be4e54597ad85e830a 100644 (file)
@@ -227,7 +227,7 @@ static int ddcb_info_show(struct seq_file *s, void *unused)
        seq_puts(s, "DDCB QUEUE:\n");
        seq_printf(s, "  ddcb_max:            %d\n"
                   "  ddcb_daddr:          %016llx - %016llx\n"
-                  "  ddcb_vaddr:          %016llx\n"
+                  "  ddcb_vaddr:          %p\n"
                   "  ddcbs_in_flight:     %u\n"
                   "  ddcbs_max_in_flight: %u\n"
                   "  ddcbs_completed:     %u\n"
@@ -237,7 +237,7 @@ static int ddcb_info_show(struct seq_file *s, void *unused)
                   queue->ddcb_max, (long long)queue->ddcb_daddr,
                   (long long)queue->ddcb_daddr +
                   (queue->ddcb_max * DDCB_LENGTH),
-                  (long long)queue->ddcb_vaddr, queue->ddcbs_in_flight,
+                  queue->ddcb_vaddr, queue->ddcbs_in_flight,
                   queue->ddcbs_max_in_flight, queue->ddcbs_completed,
                   queue->return_on_busy, queue->wait_on_busy,
                   cd->irqs_processed);