habanalabs: use %px instead of %p in error print
authorOded Gabbay <oded.gabbay@gmail.com>
Sat, 2 Mar 2019 09:43:12 +0000 (11:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 2 Mar 2019 11:03:56 +0000 (12:03 +0100)
commitdbbe358b13706d86d1945a010f5d2a34b8c81d06
tree5dd2148b96436374a5520a948c945297409a38eb
parent99f63620b484b421c480d5048d8ab88a0bacb7ac
habanalabs: use %px instead of %p in error print

When parsing the address of an internal command buffer, the driver prints
an error if the buffer's address is not in the range of the device's DRAM
or SRAM memory address space.

Use %px to print the real address that the user gave the driver and not a
hashed value, so the user will get a clue regarding the origin of his
error.

Note that if the print occurs, the pointer that is printed is a
user's virtual address and not some kind of physical address.

Suggested-by: Joe Perches <joe@perches.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/habanalabs/goya/goya.c