From 279cc1027bb5da87de9925402e68ce51e025d05a Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sat, 22 Nov 2014 00:33:41 -0800 Subject: [PATCH] GBA Video: Fix a format string warning --- src/gba/renderers/video-software.c | 2 +- src/util/common.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gba/renderers/video-software.c b/src/gba/renderers/video-software.c index ed82d40f5..fccef031b 100644 --- a/src/gba/renderers/video-software.c +++ b/src/gba/renderers/video-software.c @@ -1192,7 +1192,7 @@ static inline void _compositeNoBlendNoObjwin(struct GBAVideoSoftwareRenderer* re DRAW_BACKGROUND_MODE_0_TILE_PREFIX_ ## BPP (BLEND, OBJWIN) \ } \ if (VIDEO_CHECKS && UNLIKELY(&renderer->row[outX] != pixel)) { \ - GBALog(0, GBA_LOG_FATAL, "Background draw ended in the wrong place! Diff: %lx", &renderer->row[outX] - pixel); \ + GBALog(0, GBA_LOG_FATAL, "Background draw ended in the wrong place! Diff: %" PRIXPTR, &renderer->row[outX] - pixel); \ } \ if (VIDEO_CHECKS && UNLIKELY(outX > VIDEO_HORIZONTAL_PIXELS)) { \ GBALog(0, GBA_LOG_FATAL, "Out of bounds background draw occurred!"); \ diff --git a/src/util/common.h b/src/util/common.h index ba8bb138b..da429f7e6 100644 --- a/src/util/common.h +++ b/src/util/common.h @@ -3,6 +3,7 @@ #include #include +#include #include #include #include