OSDN Git Service

i965: Use %x instead of %u in debug print.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 7 Apr 2018 05:56:48 +0000 (22:56 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 7 Apr 2018 05:57:48 +0000 (22:57 -0700)
I mistakenly printed out the address as 0x<decimal number> instead of
printing a proper hex number.  This was...surprising.

src/mesa/drivers/dri/i965/intel_batchbuffer.c

index 7286140..55889be 100644 (file)
@@ -64,7 +64,7 @@ dump_validation_list(struct intel_batchbuffer *batch)
       uint64_t flags = batch->validation_list[i].flags;
       assert(batch->validation_list[i].handle ==
              batch->exec_bos[i]->gem_handle);
-      fprintf(stderr, "[%2d]: %2d %-14s %p %s%-7s @ 0x%016llu%s (%"PRIu64"B)\n",
+      fprintf(stderr, "[%2d]: %2d %-14s %p %s%-7s @ 0x%016llx%s (%"PRIu64"B)\n",
               i,
               batch->validation_list[i].handle,
               batch->exec_bos[i]->name,