From fb0fe8617c6e7624c2323f2fe60f56e4fa49cd64 Mon Sep 17 00:00:00 2001 From: Christian Helmuth Date: Wed, 15 Jun 2022 17:00:25 +0200 Subject: [PATCH] dde_linux: re-enable -Wformat Fixes #4542 --- repos/dde_linux/lib/import/import-lx_emul_common.inc | 1 - repos/pc/src/lib/wifi/lx_emul.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/repos/dde_linux/lib/import/import-lx_emul_common.inc b/repos/dde_linux/lib/import/import-lx_emul_common.inc index 48ae69e364..4e8113d401 100644 --- a/repos/dde_linux/lib/import/import-lx_emul_common.inc +++ b/repos/dde_linux/lib/import/import-lx_emul_common.inc @@ -133,7 +133,6 @@ CC_C_OPT += -Wno-restrict -Wno-maybe-uninitialized -Werror=date-time CC_C_OPT += -Werror=incompatible-pointer-types -Werror=designated-init CC_C_OPT += -Wno-packed-not-aligned CC_C_OPT += -Wno-discarded-qualifiers -CC_C_OPT += -Wno-format # avoid link errors whenever the build config's CC_OLEVEL is set to -O0 override CC_OLEVEL := -O2 diff --git a/repos/pc/src/lib/wifi/lx_emul.c b/repos/pc/src/lib/wifi/lx_emul.c index 61a3c0474f..2821c69ac8 100644 --- a/repos/pc/src/lib/wifi/lx_emul.c +++ b/repos/pc/src/lib/wifi/lx_emul.c @@ -483,7 +483,7 @@ void *page_frag_alloc_align(struct page_frag_cache *nc, /* see page_frag_free */ if (order > 0) - printk("%s: alloc might leak memory: fragsz: %u PAGE_SIZE: %u " + printk("%s: alloc might leak memory: fragsz: %u PAGE_SIZE: %lu " "order: %u page: %p addr: %p\n", __func__, fragsz, PAGE_SIZE, order, page, page->virtual); return page->virtual;