Re: [PATCH] vsprintf: don't obfuscate NULL and error pointers

From: Linus Torvalds
Date: Tue Feb 18 2020 - 15:21:42 EST


On Tue, Feb 18, 2020 at 12:18 PM Ilya Dryomov <idryomov@xxxxxxxxx> wrote:
>
> > %p: 0000000001f8cc5b -EFAULT NULL
>
> ^^^
> I assume you meant %pe here.

Heh, yes.

> Looks sensible to me. Without this patch NULL is obfuscated for
> both %p and %pe though. Do you want this patch amended or prefer
> a follow-up for %pe "0000000000000000" -> "NULL" so that it can be
> discussed separately?

Yeah, as an independent follow-up. I think your first patch is fine,
and I think this %pe NULL behavior thing is a completely separate
issue that just came up when %pe was mentioned.

Linus