From: Jason Ekstrand Date: Sat, 25 Aug 2018 22:34:17 +0000 (-0500) Subject: intel/tools: Add 0x in front of a couple of hex values X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aad501f15e22a96be40c789074a3a1b9518fa70d;p=mesa.git intel/tools: Add 0x in front of a couple of hex values Reviewed-by: Lionel Landwerlin --- diff --git a/src/intel/common/gen_batch_decoder.c b/src/intel/common/gen_batch_decoder.c index 6884a999401..1a5c8c37968 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 \n", i, pointers[i]); + fprintf(ctx->fp, "pointer %u: 0x%08x \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)); } }