util/log: Add log_error which logs errors but does not abort
This is required for tools/applications that want or have to fail gracefully but still need to highlight the severity in the log.
This commit is contained in:
@@ -22,6 +22,7 @@
|
|||||||
#define log_misc(...) log_impl_misc(LOG_MODULE, __VA_ARGS__)
|
#define log_misc(...) log_impl_misc(LOG_MODULE, __VA_ARGS__)
|
||||||
#define log_info(...) log_impl_info(LOG_MODULE, __VA_ARGS__)
|
#define log_info(...) log_impl_info(LOG_MODULE, __VA_ARGS__)
|
||||||
#define log_warning(...) log_impl_warning(LOG_MODULE, __VA_ARGS__)
|
#define log_warning(...) log_impl_warning(LOG_MODULE, __VA_ARGS__)
|
||||||
|
#define log_error(...) log_impl_fatal(LOG_MODULE, __VA_ARGS__)
|
||||||
|
|
||||||
/* This doesn't really belong here, but it's what libavs does so w/e */
|
/* This doesn't really belong here, but it's what libavs does so w/e */
|
||||||
|
|
||||||
@@ -37,6 +38,7 @@
|
|||||||
#define log_misc(...)
|
#define log_misc(...)
|
||||||
#define log_info(...)
|
#define log_info(...)
|
||||||
#define log_warning(...)
|
#define log_warning(...)
|
||||||
|
#define log_error(...)
|
||||||
#define log_assert(x) \
|
#define log_assert(x) \
|
||||||
do { \
|
do { \
|
||||||
if (!(x)) { \
|
if (!(x)) { \
|
||||||
|
|||||||
Reference in New Issue
Block a user