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 <lionel.g.landwerlin@intel.com>
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user