From: Thomas Gleixner <tglx@linutronix.de>
To: Jeff loughlin <loughlinjd@gmail.com>
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
Subject: Re: [PATCH] x86: init: Remove raw kernel pointer from printk
Date: Fri, 28 Sep 2018 21:48:40 +0200 (CEST) [thread overview]
Message-ID: <alpine.DEB.2.21.1809282141410.1432@nanos.tec.linutronix.de> (raw)
In-Reply-To: <1538163460-17173-1-git-send-email-loughlinjd@gmail.com>
Jeff,
On Fri, 28 Sep 2018, Jeff loughlin wrote:
> From: Jeff Loughlin <loughlinjd@gmail.com>
>
> printk message in set_real_mode_mem() contains a raw kernel pointer, which printk rightly changes to (ptrval).
Please format your changelog properly next time. Left aligned and line
breaks around 78 characters.
> This is useless in the dmesg log and should be removed.
Agreed, (ptrval) is pretty useless, but this is a debug printk and the real
address is not useless for debugging, so just removing it is not
necessarily the best solution.
> 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);
Please check your patches with scripts/checkpatch.pl next time. It would
have told you to change that printk(KERN_DEBUG) to pr_debug()
Thanks,
tglx
prev parent reply other threads:[~2018-09-28 19:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-28 19:37 Jeff loughlin
2018-09-28 19:48 ` Thomas Gleixner [this message]
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=alpine.DEB.2.21.1809282141410.1432@nanos.tec.linutronix.de \
--to=tglx@linutronix.de \
--cc=bp@alien8.de \
--cc=brijesh.singh@amd.com \
--cc=gregkh@linuxfoundation.org \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=loughlinjd@gmail.com \
--cc=mingo@redhat.com \
--cc=pombredanne@nexb.com \
--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®