From: Dave Airlie Date: Tue, 2 Sep 2014 00:03:00 +0000 (+1000) Subject: xvmc/tests: %C isn't a valid printf specifier. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=32a8b2cf548ae04374b6497a0c4b1c7f1a4339ec;p=mesa.git xvmc/tests: %C isn't a valid printf specifier. Reported-by: Coverity scanner. Signed-off-by: Dave Airlie --- diff --git a/src/gallium/state_trackers/xvmc/tests/test_subpicture.c b/src/gallium/state_trackers/xvmc/tests/test_subpicture.c index 8bd4d6d7a08..ae0bc8b5a73 100644 --- a/src/gallium/state_trackers/xvmc/tests/test_subpicture.c +++ b/src/gallium/state_trackers/xvmc/tests/test_subpicture.c @@ -36,7 +36,7 @@ static void PrintGUID(const char *guid) int i; printf("\tguid: "); for (i = 0; i < 4; ++i) - printf("%C,", guid[i] == 0 ? '0' : guid[i]); + printf("%c,", guid[i] == 0 ? '0' : guid[i]); for (; i < 15; ++i) printf("%x,", (unsigned char)guid[i]); printf("%x\n", (unsigned int)guid[15]); @@ -47,7 +47,7 @@ static void PrintComponentOrder(const char *co) int i; printf("\tcomponent_order:\n\t "); for (i = 0; i < 4; ++i) - printf("%C,", co[i] == 0 ? '0' : co[i]); + printf("%c,", co[i] == 0 ? '0' : co[i]); for (; i < 31; ++i) printf("%x,", (unsigned int)co[i]); printf("%x\n", (unsigned int)co[31]);