tests/modeprint: fix argument type
authorEleni Maria Stea <elene.mst@gmail.com>
Mon, 9 May 2022 12:00:54 +0000 (15:00 +0300)
committerEleni Maria Stea <elene.mst@gmail.com>
Mon, 9 May 2022 12:54:20 +0000 (15:54 +0300)
Replaced the type PRId64 with PRIu64 in a printf as the argument was
unsigned to fix the related compiler warning.

Signed-off-by: Eleni Maria Stea <elene.mst@gmail.com>
Reviewed-by: Simon Ser <contact@emersion.fr>
tests/modeprint/modeprint.c

index 880269b..9372ad9 100644 (file)
@@ -113,7 +113,7 @@ static int printProperty(int fd, drmModeResPtr res, drmModePropertyPtr props, ui
 
        } else {
                for (j = 0; j < props->count_enums; j++) {
-                       printf("\t\t%" PRId64" = %s\n", (uint64_t)props->enums[j].value, props->enums[j].name);
+                       printf("\t\t%" PRIu64" = %s\n", (uint64_t)props->enums[j].value, props->enums[j].name);
                        if (props->enums[j].value == value)
                                name = props->enums[j].name;
                }