From 291accd63d7e097709abe056adb8a09f4cf10149 Mon Sep 17 00:00:00 2001 From: applestash Date: Sat, 19 Jul 2014 00:46:34 +1000 Subject: [PATCH] fixed displaying u64 values in printf --- makerom/lib.h | 1 + makerom/utils.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/makerom/lib.h b/makerom/lib.h index 1799a9f..e0ef089 100644 --- a/makerom/lib.h +++ b/makerom/lib.h @@ -13,6 +13,7 @@ #include #include #include +#include #include #include diff --git a/makerom/utils.c b/makerom/utils.c index 45b509d..1321168 100644 --- a/makerom/utils.c +++ b/makerom/utils.c @@ -305,7 +305,7 @@ u8* ImportFile(char *file, u64 size) u64 fsize = GetFileSize_u64(file); if(size > 0){ if(size != fsize){ - fprintf(stderr,"[!] %s has an invalid size (0x%llx)\n",file, fsize); + fprintf(stderr,"[!] %s has an invalid size (0x%"PRIx64")\n",file, fsize); return NULL; } }