From 36a1e12f21ee1c20b90758913e854b4bb9f340ad Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Tue, 7 Dec 2021 21:24:00 -0500 Subject: [PATCH] kernel/vm: Cast temporary to uint32. It is defined as a uint32:1, which apparently becomes an "int" on newer GCC versions, which thus triggers a -Werror=format. So, convert it explicitly in order to prevent the error. --- src/system/kernel/vm/VMCache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/kernel/vm/VMCache.cpp b/src/system/kernel/vm/VMCache.cpp index dd150c4f0d..868d6f8f62 100644 --- a/src/system/kernel/vm/VMCache.cpp +++ b/src/system/kernel/vm/VMCache.cpp @@ -1455,7 +1455,7 @@ VMCache::Dump(bool showPages) const kprintf(" type: %s\n", vm_cache_type_to_string(type)); kprintf(" virtual_base: 0x%" B_PRIx64 "\n", virtual_base); kprintf(" virtual_end: 0x%" B_PRIx64 "\n", virtual_end); - kprintf(" temporary: %" B_PRIu32 "\n", temporary); + kprintf(" temporary: %" B_PRIu32 "\n", uint32(temporary)); kprintf(" lock: %p\n", &fLock); #if KDEBUG kprintf(" lock.holder: %" B_PRId32 "\n", fLock.holder);