diff options
author | Eleni Maria Stea <elene.mst@gmail.com> | 2022-05-09 15:00:54 +0300 |
---|---|---|
committer | Eleni Maria Stea <elene.mst@gmail.com> | 2022-05-09 15:54:20 +0300 |
commit | ae6d81da2093b139ece952913f8f00dcc26ce7b9 (patch) | |
tree | 3fb3ac202986416c522adf8da7fd01b3a030d525 | |
parent | 4caec56fb8ebfe475a83315a12941d80808f4dee (diff) |
tests/modeprint: fix argument type
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>
-rw-r--r-- | tests/modeprint/modeprint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/modeprint/modeprint.c b/tests/modeprint/modeprint.c index 880269b0..9372ad92 100644 --- a/tests/modeprint/modeprint.c +++ b/tests/modeprint/modeprint.c @@ -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; } |