debugcc: fix building failure on arm32 machines

Fix the following error:

../debugcc.c: In function 'mmap_mux':
../debugcc.c:295:40: error: format '%zx' expects argument of type 'size_t', but argument 2 has type 'long unsigned int' [-Werror=format=]

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
This commit is contained in:
Dmitry Baryshkov
2023-11-06 13:00:18 +02:00
parent 5c94c0c9c7
commit 6e28b9165b

View File

@@ -292,7 +292,7 @@ int mmap_mux(int devmem, struct debug_mux *mux)
mux->base = mmap(0, mux->size, PROT_READ | PROT_WRITE, MAP_SHARED, devmem, mux->phys);
if (mux->base == (void *)-1) {
warn("failed to map %#zx", mux->phys);
warn("failed to map %#lx", mux->phys);
return -1;
}