From: Paul Cercueil Date: Fri, 17 May 2024 11:30:10 +0000 (+0200) Subject: Lightrec plugin: Fix warnings about printf formats X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f9c874e756dbcaad870763c29f3e870add73de1;p=pcsx_rearmed.git Lightrec plugin: Fix warnings about printf formats Signed-off-by: Paul Cercueil --- 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