aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/tools/error2aub.c
diff options
context:
space:
mode:
authorMark Janes <[email protected]>2019-06-05 10:49:32 -0700
committerMark Janes <[email protected]>2019-06-05 19:25:15 +0000
commit36d8a922ded31775c9765cf4bfe1ae1c5948a931 (patch)
tree7797205e6c561af69e2a9d4ad5b75c663e22e78a /src/intel/tools/error2aub.c
parent8a31eaa4e2402df01805db7484f215aa3fa361da (diff)
intel/tools: use C99 print conversion specifier for 32 bit builds
Fixes formatting errors for 32 bit compilations, eg: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘uint64_t’ {aka ‘long long unsigned int’} [-Werror=format=] Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/tools/error2aub.c')
-rw-r--r--src/intel/tools/error2aub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/tools/error2aub.c b/src/intel/tools/error2aub.c
index e4d985543c2..32e41b80365 100644
--- a/src/intel/tools/error2aub.c
+++ b/src/intel/tools/error2aub.c
@@ -498,7 +498,7 @@ main(int argc, char *argv[])
fprintf(stdout, "context dump:\n");
for (int i = 0; i < 60; i++) {
if (i % 4 == 0)
- fprintf(stdout, "\n 0x%08lx: ", bo_entry->addr + 8192 + i * 4);
+ fprintf(stdout, "\n 0x%08" PRIx64 ": ", bo_entry->addr + 8192 + i * 4);
fprintf(stdout, "0x%08x ", context[i]);
}
fprintf(stdout, "\n");