From 6e28b9165baf5786c03b531e65e2c826308182d8 Mon Sep 17 00:00:00 2001 From: Dmitry Baryshkov Date: Mon, 6 Nov 2023 13:00:18 +0200 Subject: [PATCH] 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 --- debugcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debugcc.c b/debugcc.c index 51b005e..c8e23f3 100644 --- a/debugcc.c +++ b/debugcc.c @@ -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; }