From: Joe Perches <joe@perches.com>
To: Jiri Kosina <trivial@kernel.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>,
Heiko Carstens <heiko.carstens@de.ibm.com>,
linux390@de.ibm.com, linux-s390@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [TRIVIAL PATCH 12/26] s390: Convert print_symbol to %pSR
Date: Wed, 12 Dec 2012 17:22:14 -0800 [thread overview]
Message-ID: <1355361734.2164.9.camel@joe-AO722> (raw)
In-Reply-To: <08ed143e48ebb9f16ae49daa9fb2d90f45c6e2cf.1355335228.git.joe@perches.com>
On Wed, 2012-12-12 at 10:19 -0800, Joe Perches wrote:
> Use the new vsprintf extension to avoid any possible
> message interleaving.
[]
> diff --git a/arch/s390/kernel/traps.c b/arch/s390/kernel/traps.c
[]
> @@ -91,8 +91,9 @@ __show_trace(unsigned long sp, unsigned long low, unsigned long high)
> if (sp < low || sp > high - sizeof(*sf))
> return sp;
> sf = (struct stack_frame *) sp;
> - printk("([<%016lx>] ", sf->gprs[8] & PSW_ADDR_INSN);
> - print_symbol("%s)\n", sf->gprs[8] & PSW_ADDR_INSN);
> + printk("([<%016lx>] %pSR\n",
Sorry, this is defective, it needs a trailing ')' like:
+ printk("([<%016lx>] %pSR)\n",
> @@ -102,16 +103,18 @@ __show_trace(unsigned long sp, unsigned long low, unsigned long high)
> if (sp <= low || sp > high - sizeof(*sf))
> return sp;
> sf = (struct stack_frame *) sp;
> - printk(" [<%016lx>] ", sf->gprs[8] & PSW_ADDR_INSN);
> - print_symbol("%s\n", sf->gprs[8] & PSW_ADDR_INSN);
> + printk(" [<%016lx>] %pSR\n",
here too
I'll resubmit.
next prev parent reply other threads:[~2012-12-13 1:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-12 18:18 [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR Joe Perches
2012-12-12 18:19 ` [TRIVIAL PATCH 12/26] s390: Convert print_symbol to %pSR Joe Perches
2012-12-13 1:22 ` Joe Perches [this message]
2012-12-13 1:43 ` [TRIVIAL PATCH V2 " Joe Perches
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=1355361734.2164.9.camel@joe-AO722 \
--to=joe@perches.com \
--cc=heiko.carstens@de.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=linux390@de.ibm.com \
--cc=schwidefsky@de.ibm.com \
--cc=trivial@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