diff options
Diffstat (limited to 'tests/modeprint/modeprint.c')
-rw-r--r-- | tests/modeprint/modeprint.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/modeprint/modeprint.c b/tests/modeprint/modeprint.c index 595d4447..89719147 100644 --- a/tests/modeprint/modeprint.c +++ b/tests/modeprint/modeprint.c @@ -89,7 +89,7 @@ int printMode(struct drm_mode_modeinfo *mode) int printProperty(int fd, drmModeResPtr res, drmModePropertyPtr props, uint64_t value) { - const unsigned char *name = NULL; + const char *name = NULL; int j; printf("Property: %s\n", props->name); @@ -101,7 +101,7 @@ int printProperty(int fd, drmModeResPtr res, drmModePropertyPtr props, uint64_t if (props->count_values) { printf("\tvalues :"); for (j = 0; j < props->count_values; j++) - printf(" %lld", props->values[j]); + printf(" %llu", props->values[j]); printf("\n"); } @@ -116,7 +116,7 @@ int printProperty(int fd, drmModeResPtr res, drmModePropertyPtr props, uint64_t printf("blob is %d length, %08X\n", blob->length, *(uint32_t *)blob->data); drmModeFreePropertyBlob(blob); } else { - printf("error getting blob %lld\n", value); + printf("error getting blob %llu\n", value); } } else { @@ -169,7 +169,7 @@ int printConnector(int fd, drmModeResPtr res, drmModeConnectorPtr connector, uin if (modes) { for (i = 0; i < connector->count_modes; i++) { - mode = &connector->modes[i]; + mode = (struct drm_mode_modeinfo *)&connector->modes[i]; printMode(mode); } } |