summaryrefslogtreecommitdiffstats
path: root/src/intel/compiler/brw_disasm.c
diff options
context:
space:
mode:
authorGrazvydas Ignotas <[email protected]>2018-02-03 23:59:05 +0200
committerGrazvydas Ignotas <[email protected]>2018-02-10 17:59:02 +0200
commit9b9a89cd795fda462a6ee898ef6e5135ca79d94e (patch)
treefe85cb242a3478e630a3db665bcce76fd738cce3 /src/intel/compiler/brw_disasm.c
parentff0e3fa1fe664f6a7aba289ed36fca9ff505bc18 (diff)
intel/compiler: fix 64bit value prints on 32bit
Fix the following: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘uint64_t {aka long long unsigned int}. Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/compiler/brw_disasm.c')
-rw-r--r--src/intel/compiler/brw_disasm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/compiler/brw_disasm.c b/src/intel/compiler/brw_disasm.c
index 1a94ed39540..429ed781404 100644
--- a/src/intel/compiler/brw_disasm.c
+++ b/src/intel/compiler/brw_disasm.c
@@ -1249,10 +1249,10 @@ imm(FILE *file, const struct gen_device_info *devinfo, enum brw_reg_type type,
{
switch (type) {
case BRW_REGISTER_TYPE_UQ:
- format(file, "0x%016lxUQ", brw_inst_imm_uq(devinfo, inst));
+ format(file, "0x%016"PRIx64"UQ", brw_inst_imm_uq(devinfo, inst));
break;
case BRW_REGISTER_TYPE_Q:
- format(file, "%ldQ", brw_inst_imm_uq(devinfo, inst));
+ format(file, "%"PRId64"Q", brw_inst_imm_uq(devinfo, inst));
break;
case BRW_REGISTER_TYPE_UD:
format(file, "0x%08xUD", brw_inst_imm_ud(devinfo, inst));