From: Andreas Schwab <schwab@linux-m68k.org>
To: Frederic Weisbecker <fweisbec@gmail.com>
Cc: "André Goddard Rosa" <andre.goddard@gmail.com>,
laijs@cn.fujitsu.com, mingo@elte.hu, davem@davemloft.net,
akpm@linux-foundation.org, harvey.harrison@gmail.com,
"linux list" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] vsprintf: reduce code size, clean up
Date: Mon, 02 Nov 2009 19:13:47 +0100 [thread overview]
Message-ID: <m2ocnkdcbo.fsf@igel.home> (raw)
In-Reply-To: <20091101224547.GB5263@nowhere> (Frederic Weisbecker's message of "Sun, 1 Nov 2009 23:45:49 +0100")
Frederic Weisbecker <fweisbec@gmail.com> writes:
> On Sun, Nov 01, 2009 at 03:01:40PM -0200, André Goddard Rosa wrote:
>> @@ -822,30 +825,34 @@ static char *pointer(const char *fmt, char *buf,
>> char *end, void *ptr,
>> struct printf_spec spec)
>> {
>> if (!ptr)
>> - return string(buf, end, "(null)", spec);
>> + return string(buf, end, null, spec);
>>
>> - switch (*fmt) {
>> - case 'F':
>> + switch (TOLOWER(*fmt)) {
>> case 'f':
>> + /* or case 'F' */
>> ptr = dereference_function_descriptor(ptr);
>> - case 's':
>> /* Fallthrough */
>> - case 'S':
>> + case 's':
>> + /* or case 'S' */
>> return symbol_string(buf, end, ptr, spec, *fmt);
>> case 'R':
>> return resource_string(buf, end, ptr, spec);
>
>
>
> What happens if we have %pr ?
> It will behave like %pR but it shouldn't.
%pR does not work any more anyway. :-)
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
prev parent reply other threads:[~2009-11-02 18:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-01 17:01 [PATCH] vsprintf: reduce code size, clean up André Goddard Rosa
2009-11-01 22:45 ` Frederic Weisbecker
2009-11-01 23:00 ` André Goddard Rosa
2009-11-01 23:18 ` Frederic Weisbecker
2009-11-02 18:13 ` Andreas Schwab [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=m2ocnkdcbo.fsf@igel.home \
--to=schwab@linux-m68k.org \
--cc=akpm@linux-foundation.org \
--cc=andre.goddard@gmail.com \
--cc=davem@davemloft.net \
--cc=fweisbec@gmail.com \
--cc=harvey.harrison@gmail.com \
--cc=laijs@cn.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
/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