projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
976ba8d
)
x86/cpu: Prefix hexadecimal values with 0x in cpu_debug_show()
author
Pawan Gupta
<pawan.kumar.gupta@linux.intel.com>
Thu, 12 Dec 2024 06:57:24 +0000
(22:57 -0800)
committer
Ingo Molnar
<mingo@kernel.org>
Thu, 27 Feb 2025 12:26:53 +0000
(13:26 +0100)
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
arch/x86/kernel/cpu/debugfs.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kernel/cpu/debugfs.c
b/arch/x86/kernel/cpu/debugfs.c
index cacfd3f6abeffcea1ebdec5ca295590d573f68ad..1976fef2dfe5132f829c9239b4d972f09aa9be9f 100644
(file)
--- a/
arch/x86/kernel/cpu/debugfs.c
+++ b/
arch/x86/kernel/cpu/debugfs.c
@@
-16,8
+16,8
@@
static int cpu_debug_show(struct seq_file *m, void *p)
if (!c->initialized)
return 0;
- seq_printf(m, "initial_apicid: %x\n", c->topo.initial_apicid);
- seq_printf(m, "apicid: %x\n", c->topo.apicid);
+ seq_printf(m, "initial_apicid:
0x
%x\n", c->topo.initial_apicid);
+ seq_printf(m, "apicid:
0x
%x\n", c->topo.apicid);
seq_printf(m, "pkg_id: %u\n", c->topo.pkg_id);
seq_printf(m, "die_id: %u\n", c->topo.die_id);
seq_printf(m, "cu_id: %u\n", c->topo.cu_id);