aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMatt Turner2011-03-03 20:02:06 -0600
committerMatt Turner2011-09-21 10:02:55 -0500
commit1459cb9252e3a07292d3e64ce961f738cd01eae4 (patch)
treefdeb4e178d46b71987ccc5f0fd94fbd9267b9018 /tests
parent7d8381614174c6c70c5676cb230f0d9b034b27aa (diff)
downloadlibdrm-1459cb9252e3a07292d3e64ce961f738cd01eae4.tar.gz
libdrm-1459cb9252e3a07292d3e64ce961f738cd01eae4.tar.xz
libdrm-1459cb9252e3a07292d3e64ce961f738cd01eae4.zip
modeprint.c: use PRIu64 for printing uint64_t
Signed-off-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/modeprint/modeprint.c7
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 @@
36#include <stdint.h> 36#include <stdint.h>
37#include <unistd.h> 37#include <unistd.h>
38#include <string.h> 38#include <string.h>
39#include <inttypes.h>
39 40
40#include "xf86drm.h" 41#include "xf86drm.h"
41#include "xf86drmMode.h" 42#include "xf86drmMode.h"
@@ -101,7 +102,7 @@ int printProperty(int fd, drmModeResPtr res, drmModePropertyPtr props, uint64_t
101 if (props->count_values) { 102 if (props->count_values) {
102 printf("\tvalues :"); 103 printf("\tvalues :");
103 for (j = 0; j < props->count_values; j++) 104 for (j = 0; j < props->count_values; j++)
104 printf(" %llu", props->values[j]); 105 printf(" %" PRIu64, props->values[j]);
105 printf("\n"); 106 printf("\n");
106 } 107 }
107 108
@@ -116,7 +117,7 @@ int printProperty(int fd, drmModeResPtr res, drmModePropertyPtr props, uint64_t
116 printf("blob is %d length, %08X\n", blob->length, *(uint32_t *)blob->data); 117 printf("blob is %d length, %08X\n", blob->length, *(uint32_t *)blob->data);
117 drmModeFreePropertyBlob(blob); 118 drmModeFreePropertyBlob(blob);
118 } else { 119 } else {
119 printf("error getting blob %llu\n", value); 120 printf("error getting blob %" PRIu64 "\n", value);
120 } 121 }
121 122
122 } else { 123 } else {
@@ -132,7 +133,7 @@ int printProperty(int fd, drmModeResPtr res, drmModePropertyPtr props, uint64_t
132 if (props->count_enums && name) { 133 if (props->count_enums && name) {
133 printf("\tcon_value : %s\n", name); 134 printf("\tcon_value : %s\n", name);
134 } else { 135 } else {
135 printf("\tcon_value : %lld\n", value); 136 printf("\tcon_value : %" PRIu64 "\n", value);
136 } 137 }
137 } 138 }
138 139