Re: [PATCH 2/3] printk: Make the printk*once() variants return a value

2016-06-25 Thread Borislav Petkov
On Fri, Jun 24, 2016 at 06:43:04AM -0700, Joe Perches wrote: > Perhaps the printk_once macros should end with > unlikely(__ret_print_once); > like the WARN_ONCE variants. Done, thanks. -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply. --

Re: [PATCH 2/3] printk: Make the printk*once() variants return a value

2016-06-24 Thread Joe Perches
On Fri, 2016-06-24 at 10:30 +0200, Borislav Petkov wrote: > From: Borislav Petkov > > Have printk*once() return a bool which denotes whether the string was > printed or not so that calling code can react accordingly. I expected object size to either increase or stay the same with just this chang

[PATCH 2/3] printk: Make the printk*once() variants return a value

2016-06-24 Thread Borislav Petkov
From: Borislav Petkov Have printk*once() return a bool which denotes whether the string was printed or not so that calling code can react accordingly. Signed-off-by: Borislav Petkov Cc: Andrew Morton --- include/linux/printk.h | 17 - 1 file changed, 12 insertions(+), 5 deleti