Skip to content

Commit 4a412c7

Browse files
pa1guptaIngo Molnar
authored andcommitted
x86/cpu: Prefix hexadecimal values with 0x in cpu_debug_show()
The hex values in CPU debug interface are not prefixed with 0x. This may cause misinterpretation of values. Fix it. [ mingo: Restore previous vertical alignment of the output. ] Signed-off-by: Pawan Gupta <pawan.kumar.gupta@linux.intel.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Acked-by: Dave Hansen <dave.hansen@linux.intel.com> Link: https://lore.kernel.org/r/20241211-add-cpu-type-v5-1-2ae010f50370@linux.intel.com
1 parent 976ba8d commit 4a412c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/x86/kernel/cpu/debugfs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ static int cpu_debug_show(struct seq_file *m, void *p)
1616
if (!c->initialized)
1717
return 0;
1818

19-
seq_printf(m, "initial_apicid: %x\n", c->topo.initial_apicid);
20-
seq_printf(m, "apicid: %x\n", c->topo.apicid);
19+
seq_printf(m, "initial_apicid: 0x%x\n", c->topo.initial_apicid);
20+
seq_printf(m, "apicid: 0x%x\n", c->topo.apicid);
2121
seq_printf(m, "pkg_id: %u\n", c->topo.pkg_id);
2222
seq_printf(m, "die_id: %u\n", c->topo.die_id);
2323
seq_printf(m, "cu_id: %u\n", c->topo.cu_id);

0 commit comments

Comments
 (0)