From: Jeff loughlin <loughlinjd@gmail.com>
To: tglx@linutronix.de
Cc: mingo@redhat.com, bp@alien8.de, hpa@zytor.com, x86@kernel.org,
pombredanne@nexb.com, brijesh.singh@amd.com,
thomas.lendacky@amd.com, gregkh@linuxfoundation.org,
linux-kernel@vger.kernel.org,
Jeff Loughlin <loughlinjd@gmail.com>
Subject: [PATCH] x86: init: Remove raw kernel pointer from printk
Date: Fri, 28 Sep 2018 15:37:40 -0400 [thread overview]
Message-ID: <1538163460-17173-1-git-send-email-loughlinjd@gmail.com> (raw)
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
next reply other threads:[~2018-09-28 19:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-28 19:37 Jeff loughlin [this message]
2018-09-28 19:48 ` Thomas Gleixner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1538163460-17173-1-git-send-email-loughlinjd@gmail.com \
--to=loughlinjd@gmail.com \
--cc=bp@alien8.de \
--cc=brijesh.singh@amd.com \
--cc=gregkh@linuxfoundation.org \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=pombredanne@nexb.com \
--cc=tglx@linutronix.de \
--cc=thomas.lendacky@amd.com \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®