NTB: ntb_perf: fix printing of resource_size_t
authorArnd Bergmann <arnd@arndb.de>
Fri, 19 Jan 2018 14:55:28 +0000 (15:55 +0100)
committerJon Mason <jdmason@kudzu.us>
Mon, 29 Jan 2018 03:17:24 +0000 (22:17 -0500)
commit1536dc063e82090c5da65ddd94b1da1b38bfab43
tree256cd76fd8b2b3ad7dbf56a685a2e94229ce608e
parent6952c6de8a350ef6052f3ae33499b947819df913
NTB: ntb_perf: fix printing of resource_size_t

On 32-bit architectures, resource_size_t is usually 'unsigned int' or
'unsigned long' but not 'unsigned long long', so we get a warning
about printing the wrong data:

drivers/ntb/test/ntb_perf.c: In function 'perf_setup_peer_mw':
drivers/ntb/test/ntb_perf.c:1390:35: error: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type 'resource_size_t {aka unsigned int}' [-Werror=format=]

This changes the format string to the special %pa that is already
used elsewhere in the same file.

Fixes: b83003b3fdc1 ("NTB: ntb_perf: Add full multi-port NTB API support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/test/ntb_perf.c