mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] x86: init: Remove raw kernel pointer from printk
@ 2018-09-28 19:37 Jeff loughlin
  2018-09-28 19:48 ` Thomas Gleixner
  0 siblings, 1 reply; 2+ messages in thread
From: Jeff loughlin @ 2018-09-28 19:37 UTC (permalink / raw)
  To: tglx
  Cc: mingo, bp, hpa, x86, pombredanne, brijesh.singh, thomas.lendacky,
	gregkh, linux-kernel, Jeff Loughlin

From: Jeff Loughlin <loughlinjd@gmail.com>

    printk message in set_real_mode_mem() contains a raw kernel pointer, which printk rightly changes to (ptrval).
    This is useless in the dmesg log and should be removed.

    Signed-off-by: Jeff Loughlin <loughlinjd@gmail.com>
---
 arch/x86/realmode/init.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/realmode/init.c b/arch/x86/realmode/init.c
index d101058..d76a138 100644
--- a/arch/x86/realmode/init.c
+++ b/arch/x86/realmode/init.c
@@ -20,8 +20,8 @@ void __init set_real_mode_mem(phys_addr_t mem, size_t size)
 	void *base = __va(mem);
 
 	real_mode_header = (struct real_mode_header *) base;
-	printk(KERN_DEBUG "Base memory trampoline at [%p] %llx size %zu\n",
-	       base, (unsigned long long)mem, size);
+	printk(KERN_DEBUG "Base memory trampoline at %llx size %zu\n",
+	       (unsigned long long)mem, size);
 }
 
 void __init reserve_real_mode(void)
-- 
2.1.4


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-09-28 19:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-28 19:37 [PATCH] x86: init: Remove raw kernel pointer from printk Jeff loughlin
2018-09-28 19:48 ` Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®