From 403ac39bbc035ee801a03252e5d80588a1f76b12 Mon Sep 17 00:00:00 2001 From: Mauro Rossi Date: Fri, 15 Jul 2022 18:04:27 +0200 Subject: [PATCH] nouveau/ws: fix building error in nouveau_ws_push_dump() PRIxPTR macro solves the problem Fixes the following build error: ../src/nouveau/winsys/nouveau_push.c:119:43: error: format specifies type 'unsigned long' but the argument has type 'int' [-Werror,-Wformat] printf("[0x%08lx] HDR %x subch %i", cur - push->orig_map, hdr, subchan); ~~~~~ ^~~~~~~~~~~~~~~~~~~~ %08x 1 error generated. Reviewed-by: Karol Herbst Part-of: --- src/nouveau/winsys/nouveau_push.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nouveau/winsys/nouveau_push.c b/src/nouveau/winsys/nouveau_push.c index 39cec0a..8b03668 100644 --- a/src/nouveau/winsys/nouveau_push.c +++ b/src/nouveau/winsys/nouveau_push.c @@ -1,6 +1,7 @@ #include "nouveau_push.h" #include +#include #include #include #include @@ -115,7 +116,7 @@ nouveau_ws_push_dump(struct nouveau_ws_push *push, struct nouveau_ws_context *ct uint32_t value = 0; bool is_immd = false; - printf("[0x%08lx] HDR %x subch %i", cur - push->orig_map, hdr, subchan); + printf("[0x%08" PRIxPTR "] HDR %x subch %i", cur - push->orig_map, hdr, subchan); cur++; switch (type) { -- 2.7.4