xvmc/tests: %C isn't a valid printf specifier.
authorDave Airlie <airlied@redhat.com>
Tue, 2 Sep 2014 00:03:00 +0000 (10:03 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 2 Sep 2014 00:07:54 +0000 (10:07 +1000)
Reported-by: Coverity scanner.
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/state_trackers/xvmc/tests/test_subpicture.c

index 8bd4d6d7a08f67b26edc5e0c9b7285df899eb25d..ae0bc8b5a73330511b7ecc826f1740a02b9442c3 100644 (file)
@@ -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]);