From ef103eb299a86fbfb624feb1afecb7a57f16aef4 Mon Sep 17 00:00:00 2001 From: icex2 Date: Sun, 26 Mar 2023 23:43:36 +0200 Subject: [PATCH] chore(dev): Fix format warning --- src/main/mempatch-hook/main.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/mempatch-hook/main.c b/src/main/mempatch-hook/main.c index 2c4279f..2e12991 100644 --- a/src/main/mempatch-hook/main.c +++ b/src/main/mempatch-hook/main.c @@ -18,10 +18,9 @@ static bool patch_memory_check_data( for (size_t i = 0; i < len; i++) { if (dest[i] != data_expected[i]) { log_warning( - "Memcheck error: base %" PRIXPTR " + address %" PRIXPTR " + offset %d: " - "expected %X, found %X", - base_address, - address, + "Memcheck error: base %lluX + address %lluX + offset %d: expected %X, found %X", + (uint64_t) base_address, + (uint64_t) address, // this cast is technically wrong // but no one should be patching 32K worth of bytes at once (int)i,