summaryrefslogtreecommitdiff
path: root/drivers/misc/habanalabs/goya
diff options
context:
space:
mode:
authorOded Gabbay <oded.gabbay@gmail.com>2019-02-28 12:55:45 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-02-28 15:07:52 +0300
commitefaa281219fd37cb1ee5cdef483aa67a16b0a087 (patch)
treef464e5f343532ce5a4c528cdc8d800ef6271182c /drivers/misc/habanalabs/goya
parent9e28c176410ca71a34daf98db048a6e07586a13c (diff)
downloadlinux-efaa281219fd37cb1ee5cdef483aa67a16b0a087.tar.xz
habanalabs: print pointer using %p
Don't cast pointer to u64 to print it. Instead, print the pointer using %p. Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/habanalabs/goya')
-rw-r--r--drivers/misc/habanalabs/goya/goya.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/misc/habanalabs/goya/goya.c b/drivers/misc/habanalabs/goya/goya.c
index 13923f4127af..39824214ce61 100644
--- a/drivers/misc/habanalabs/goya/goya.c
+++ b/drivers/misc/habanalabs/goya/goya.c
@@ -4276,9 +4276,8 @@ static int goya_parse_cb_no_ext_quque(struct hl_device *hdev,
return 0;
dev_err(hdev->dev,
- "Internal CB address 0x%llx + 0x%x is not in SRAM nor in DRAM\n",
- (u64) (uintptr_t) parser->user_cb,
- parser->user_cb_size);
+ "Internal CB address %p + 0x%x is not in SRAM nor in DRAM\n",
+ parser->user_cb, parser->user_cb_size);
return -EFAULT;
}