[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9fecd3a9-e1ae-a1f9-a0c5-f5db3430c81d@rasmusvillemoes.dk>
Date: Sat, 31 Aug 2019 00:03:58 +0200
From: Rasmus Villemoes <linux@...musvillemoes.dk>
To: Joe Perches <joe@...ches.com>,
Rasmus Villemoes <linux@...musvillemoes.dk>,
Sergey Senozhatsky <sergey.senozhatsky.work@...il.com>,
Uwe Kleine-König <uwe@...ine-koenig.org>,
Petr Mladek <pmladek@...e.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Jani Nikula <jani.nikula@...ux.intel.com>,
Juergen Gross <jgross@...e.com>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] printf: add support for printing symbolic error codes
On 30/08/2019 23.53, Joe Perches wrote:
>
>> diff --git a/lib/vsprintf.c b/lib/vsprintf.c
> []
>> @@ -2178,8 +2204,6 @@ char *pointer(const char *fmt, char *buf, char *end, void *ptr,
>> return flags_string(buf, end, ptr, spec, fmt);
>> case 'O':
>> return kobject_string(buf, end, ptr, spec, fmt);
>> - case 'x':
>> - return pointer_string(buf, end, ptr, spec);
>> }
>>
>> /* default is to _not_ leak addresses, hash before printing */
>
> why remove this?
>
The handling of %px is moved above the test for ptr being an ERR_PTR, so
that %px, ptr continues to be (roughly) equivalent to %08lx, (long)ptr.
Rasmus
Powered by blists - more mailing lists