diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-09-08 13:18:25 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-09-08 17:40:46 +0200 |
commit | 44f0dd628ce4ca9565b0e02b8cb63ed8272529cd (patch) | |
tree | d3fb2ad04856a64b11cecde062b069ecd27349b5 /.mailmap | |
parent | tree-wide: correct cases where return log_{error,warning} is used without value (diff) | |
download | systemd-44f0dd628ce4ca9565b0e02b8cb63ed8272529cd.tar.xz systemd-44f0dd628ce4ca9565b0e02b8cb63ed8272529cd.zip |
basic/log: make log_{info,warning,...} return void
log_debug still returns 0. I think it is legitimate to use 'return log_debug()' to
return 0. It is different than the other functions, since we often want to supress
errors logged at debug level. This case is quite common in the codebase and
we could use 'return log_debug_errno()' to make the code more consise.
For all other variants, a separate return line is required.
Previous commit changes all the non-conforming instances, now we can make it mandatory.
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions