[RFC patch] vsprintf: Allow %pe to print non PTR_ERR %pe uses as decimal

Joe Perches joe at perches.com
Wed Mar 24 22:46:09 GMT 2021


On Wed, 2021-03-24 at 23:36 +0100, Rasmus Villemoes wrote:
> On 24/03/2021 23.18, Joe Perches wrote:
> > There's no silly game here.  %pe would either print a string or a value.
> 
> A hashed value, that is, never the raw value.

There is value in printing the raw value.
As discussed, it can simplify the code.

The worry about exposing a ptr value is IMO overstated.

It's trivial to inspect the uses and _all_ %p<FOO> uses need inspection
and validation at acceptance anyway.





More information about the linux-arm-kernel mailing list