intel/tools: Add 0x in front of a couple of hex values
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 25 Aug 2018 22:34:17 +0000 (17:34 -0500)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 25 Aug 2018 23:47:08 +0000 (18:47 -0500)
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/common/gen_batch_decoder.c

index 6884a999401c2bf4a7ada744e1ca51246956d599..1a5c8c37968abb5cb712b283837980e42972b9f0 100644 (file)
@@ -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));
    }
 }