all repos — mgba @ 0890d21645117106a3a4d394b8dd2ae8288f2716

mGBA Game Boy Advance Emulator

Fix types for some LP64 systems
Jeffrey Pfau jeffrey@endrift.com
Wed, 08 Oct 2014 01:16:50 -0700
commit

0890d21645117106a3a4d394b8dd2ae8288f2716

parent

b12f7a136ed7debf909dff89cbb9a27f6551d08f

1 files changed, 3 insertions(+), 2 deletions(-)

jump to
M src/platform/perf-main.csrc/platform/perf-main.c

@@ -5,6 +5,7 @@

#include <errno.h> #include <fcntl.h> #include <signal.h> +#include <inttypes.h> #include <sys/time.h> #define PERF_OPTIONS "F:NPS:"

@@ -96,9 +97,9 @@ rendererName = "none";

} else { rendererName = "software"; } - printf("%s,%i,%llu,%s\n", gameCode, frames, duration, rendererName); + printf("%s,%i,%" PRIu64 ",%s\n", gameCode, frames, duration, rendererName); } else { - printf("%u frames in %llu microseconds: %g fps (%gx)\n", frames, duration, scaledFrames / duration, scaledFrames / (duration * 60.f)); + printf("%u frames in %" PRIu64 " microseconds: %g fps (%gx)\n", frames, duration, scaledFrames / duration, scaledFrames / (duration * 60.f)); } return 0;