Mesa (master): intel/tools: Add 0x in front of a couple of hex values

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Aug 25 23:47:25 UTC 2018


Module: Mesa
Branch: master
Commit: aad501f15e22a96be40c789074a3a1b9518fa70d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=aad501f15e22a96be40c789074a3a1b9518fa70d

Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Sat Aug 25 17:34:17 2018 -0500

intel/tools: Add 0x in front of a couple of hex values

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>

---

 src/intel/common/gen_batch_decoder.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/intel/common/gen_batch_decoder.c b/src/intel/common/gen_batch_decoder.c
index 6884a99940..1a5c8c3796 100644
--- a/src/intel/common/gen_batch_decoder.c
+++ b/src/intel/common/gen_batch_decoder.c
@@ -248,11 +248,11 @@ dump_binding_table(struct gen_batch_decode_ctx *ctx, uint32_t offset, int count)
 
       if (pointers[i] % 32 != 0 ||
           addr < bo.addr || addr + size >= bo.addr + bo.size) {
-         fprintf(ctx->fp, "pointer %u: %08x <not valid>\n", i, pointers[i]);
+         fprintf(ctx->fp, "pointer %u: 0x%08x <not valid>\n", i, pointers[i]);
          continue;
       }
 
-      fprintf(ctx->fp, "pointer %u: %08x\n", i, pointers[i]);
+      fprintf(ctx->fp, "pointer %u: 0x%08x\n", i, pointers[i]);
       ctx_print_group(ctx, strct, addr, bo.map + (addr - bo.addr));
    }
 }




More information about the mesa-commit mailing list