Re: [RFC PATCH] vsprintf: add flag ZEROPAD handling before crng is ready

2018-01-26 Thread Yang, Shunyong
Hi, Rasmus and Andy,   Thanks for your feedback. I add some information below. On Fri, 2018-01-26 at 10:43 +0100, Rasmus Villemoes wrote: > On 26 January 2018 at 10:17, Andy Shevchenko > wrote: > > > > +Rasmus > Thanks. > > > > > On Fri, 2018-01-26 at 15:39 +0800, Yang Shunyong wrote: > > > >

Re: [RFC PATCH] vsprintf: add flag ZEROPAD handling before crng is ready

2018-01-26 Thread Rasmus Villemoes
On 26 January 2018 at 10:17, Andy Shevchenko wrote: > +Rasmus Thanks. > On Fri, 2018-01-26 at 15:39 +0800, Yang Shunyong wrote: >> Before crng is ready, output of "%p" composes of "(ptrval)" and >> left padding spaces for alignment as no random address can be >> generated. This seems a little st

Re: [RFC PATCH] vsprintf: add flag ZEROPAD handling before crng is ready

2018-01-26 Thread Andy Shevchenko
+Rasmus On Fri, 2018-01-26 at 15:39 +0800, Yang Shunyong wrote: > Before crng is ready, output of "%p" composes of "(ptrval)" and > left padding spaces for alignment as no random address can be > generated. This seems a little strange sometimes. > For example, when irq domain names are built with

[RFC PATCH] vsprintf: add flag ZEROPAD handling before crng is ready

2018-01-25 Thread Yang Shunyong
Before crng is ready, output of "%p" composes of "(ptrval)" and left padding spaces for alignment as no random address can be generated. This seems a little strange sometimes. For example, when irq domain names are built with "%p", the nodes under /sys/kernel/debug/irq/domains like this, [root@y i