nouveau/ws: fix building error in nouveau_ws_push_dump()
authorMauro Rossi <issor.oruam@gmail.com>
Fri, 15 Jul 2022 16:04:27 +0000 (18:04 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Aug 2023 21:31:55 +0000 (21:31 +0000)
commit403ac39bbc035ee801a03252e5d80588a1f76b12
tree3f420975e3149f185e94377bc5b012506ce57f0e
parent002516aeb81b852db2b700d3e459501a3bb74472
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 <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
src/nouveau/winsys/nouveau_push.c