Skip to content

Commit 887e2cf

Browse files
committed
perf: arm-cmn: Fix conversion specifiers for node type
The node type field is an enum type, so print it as a 32-bit quantity rather than as an unsigned short. Link: https://lore.kernel.org/r/202009302350.QIzfkx62-lkp@intel.com Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Will Deacon <will@kernel.org>
1 parent d9ef632 commit 887e2cf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/perf/arm-cmn.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,7 +1324,7 @@ static void arm_cmn_init_node_info(struct arm_cmn *cmn, u32 offset, struct arm_c
13241324
else
13251325
level = 2;
13261326

1327-
dev_dbg(cmn->dev, "node%*c%#06hx%*ctype:%-#6hx id:%-4hd off:%#x\n",
1327+
dev_dbg(cmn->dev, "node%*c%#06hx%*ctype:%-#6x id:%-4hd off:%#x\n",
13281328
(level * 2) + 1, ' ', node->id, 5 - (level * 2), ' ',
13291329
node->type, node->logid, offset);
13301330
}
@@ -1430,7 +1430,7 @@ static int arm_cmn_discover(struct arm_cmn *cmn, unsigned int rgn_offset)
14301430
break;
14311431
/* Something has gone horribly wrong */
14321432
default:
1433-
dev_err(cmn->dev, "invalid device node type: 0x%hx\n", dn->type);
1433+
dev_err(cmn->dev, "invalid device node type: 0x%x\n", dn->type);
14341434
return -ENODEV;
14351435
}
14361436
}

0 commit comments

Comments
 (0)