lkml.org 
[lkml]   [2022]   [Sep]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] printf: Emit "SUCCESS" if NULL is passed for %pe
On Fri, Sep 30, 2022 at 03:24:24PM +0200, Uwe Kleine-König wrote:
> On Fri, Sep 30, 2022 at 02:14:16PM +0200, Petr Mladek wrote:
> > On Fri 2022-09-30 13:10:50, Uwe Kleine-König wrote:

...

> > If get_bla() returns NULL then it means a super fault. It means
> > that get_bla() failed and did not know why.
>
> OK, I think we agree that a function that might return an error pointer
> shouldn't return NULL with the semantic "This is also an error."

But it neither means "success".

--
With Best Regards,
Andy Shevchenko


\
 
 \ /
  Last update: 2022-09-30 15:44    [W:0.067 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site