Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Pawan Gupta and committed by
Ingo Molnar
4a412c70 976ba8da

+2 -2
+2 -2
arch/x86/kernel/cpu/debugfs.c
··· 16 16 if (!c->initialized) 17 17 return 0; 18 18 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); 21 21 seq_printf(m, "pkg_id: %u\n", c->topo.pkg_id); 22 22 seq_printf(m, "die_id: %u\n", c->topo.die_id); 23 23 seq_printf(m, "cu_id: %u\n", c->topo.cu_id);