summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2014-09-02 10:03:00 +1000
committerDave Airlie <[email protected]>2014-09-02 10:07:54 +1000
commit32a8b2cf548ae04374b6497a0c4b1c7f1a4339ec (patch)
tree5c7bec221afe0680503da3d550c3345c46fadd06
parentea88b1de2fb589221b2d12595706daf712e4abd8 (diff)
xvmc/tests: %C isn't a valid printf specifier.
Reported-by: Coverity scanner. Signed-off-by: Dave Airlie <[email protected]>
-rw-r--r--src/gallium/state_trackers/xvmc/tests/test_subpicture.c4
1 files changed, 2 insertions, 2 deletions
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]);