From 8f9c874e756dbcaad870763c29f3e870add73de1 Mon Sep 17 00:00:00 2001 From: Paul Cercueil Date: Fri, 17 May 2024 13:30:10 +0200 Subject: [PATCH] Lightrec plugin: Fix warnings about printf formats Signed-off-by: Paul Cercueil --- libpcsxcore/lightrec/mem.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libpcsxcore/lightrec/mem.c b/libpcsxcore/lightrec/mem.c index 9134d893..5cd86b4f 100644 --- a/libpcsxcore/lightrec/mem.c +++ b/libpcsxcore/lightrec/mem.c @@ -8,6 +8,7 @@ #endif #include #include +#include #include #include #include @@ -50,13 +51,15 @@ static void * mmap_huge(void *addr, size_t length, int prot, int flags, flags | MAP_HUGETLB | (21 << MAP_HUGE_SHIFT), fd, offset); if (map != MAP_FAILED) - printf("Hugetlb mmap to address 0x%lx succeeded\n", (uintptr_t) addr); + printf("Hugetlb mmap to address 0x%" PRIxPTR " succeeded\n", + (uintptr_t) addr); } if (map == MAP_FAILED) { map = mmap(addr, length, prot, flags, fd, offset); if (map != MAP_FAILED) { - printf("Regular mmap to address 0x%lx succeeded\n", (uintptr_t) addr); + printf("Regular mmap to address 0x%" PRIxPTR " succeeded\n", + (uintptr_t) addr); #ifdef MADV_HUGEPAGE madvise(map, length, MADV_HUGEPAGE); #endif -- 2.39.2