diff options
author | Matt Turner <mattst88@gmail.com> | 2011-03-03 21:02:06 -0500 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2011-09-21 11:02:55 -0400 |
commit | 1459cb9252e3a07292d3e64ce961f738cd01eae4 (patch) | |
tree | fdeb4e178d46b71987ccc5f0fd94fbd9267b9018 | |
parent | 7d8381614174c6c70c5676cb230f0d9b034b27aa (diff) |
modeprint.c: use PRIu64 for printing uint64_t
Signed-off-by: Matt Turner <mattst88@gmail.com>
-rw-r--r-- | tests/modeprint/modeprint.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/modeprint/modeprint.c b/tests/modeprint/modeprint.c index 09b8df0a..545ff40a 100644 --- a/tests/modeprint/modeprint.c +++ b/tests/modeprint/modeprint.c @@ -36,6 +36,7 @@ #include <stdint.h> #include <unistd.h> #include <string.h> +#include <inttypes.h> #include "xf86drm.h" #include "xf86drmMode.h" @@ -101,7 +102,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(" %llu", props->values[j]); + printf(" %" PRIu64, props->values[j]); printf("\n"); } @@ -116,7 +117,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 %llu\n", value); + printf("error getting blob %" PRIu64 "\n", value); } } else { @@ -132,7 +133,7 @@ int printProperty(int fd, drmModeResPtr res, drmModePropertyPtr props, uint64_t if (props->count_enums && name) { printf("\tcon_value : %s\n", name); } else { - printf("\tcon_value : %lld\n", value); + printf("\tcon_value : %" PRIu64 "\n", value); } } |