Fix types for some LP64 systems
Jeffrey Pfau jeffrey@endrift.com
Wed, 08 Oct 2014 01:16:50 -0700
1 files changed,
3 insertions(+),
2 deletions(-)
jump to
M
src/platform/perf-main.c
→
src/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;