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>main
parent
4caec56fb8
commit
ae6d81da20
|
@ -113,7 +113,7 @@ static int printProperty(int fd, drmModeResPtr res, drmModePropertyPtr props, ui
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
for (j = 0; j < props->count_enums; j++) {
|
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)
|
if (props->enums[j].value == value)
|
||||||
name = props->enums[j].name;
|
name = props->enums[j].name;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue