]> git.dujemihanovic.xyz Git - u-boot.git/commit
log: Add return-checking macros for 0 being success
authorSimon Glass <sjg@chromium.org>
Thu, 21 Jan 2021 03:10:54 +0000 (20:10 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 12 Mar 2021 22:41:35 +0000 (17:41 -0500)
commit7bd06587decafabb56f68de3ae87adb4c49ca8db
tree79186153ce0f6339b3f172bdffcd300e502e64db
parent9ad7a6c25c7142a46fe4b811c13bc3280c4bb27f
log: Add return-checking macros for 0 being success

The existing log_ret() and log_msg_ret() macros consider an error to be
less than zero. But some function may return a positive number to indicate
a different kind of failure. Add macros to check for that also.

Signed-off-by: Simon Glass <sjg@chromium.org>
doc/develop/logging.rst
include/log.h