basic/log: make log_{info,warning,...} return void
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 8 Sep 2020 11:18:25 +0000 (13:18 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 11 Sep 2020 17:55:42 +0000 (19:55 +0200)
commite1ff4947d25bd3b9cb6a4362566cb65ae257b0aa
tree7bbbb6836834ca5f48facd3c7416d2631d843810
parent8019995e9af9c6d7b5985198cedccd24eda3e26e
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.

(cherry picked from commit 44f0dd628ce4ca9565b0e02b8cb63ed8272529cd)
src/basic/log.h