mirror of
https://github.com/systemd/systemd.git
synced 2024-11-07 09:56:51 +03:00
log: protect errno when we use assert_return()
This commit is contained in:
parent
ad5b215d1b
commit
e5ca092c27
@ -713,6 +713,7 @@ _noreturn_ void log_assert_failed_unreachable(const char *text, const char *file
|
||||
}
|
||||
|
||||
void log_assert_failed_return(const char *text, const char *file, int line, const char *func) {
|
||||
PROTECT_ERRNO;
|
||||
log_assert(LOG_DEBUG, text, file, line, func, "Assertion '%s' failed at %s:%u, function %s(). Ignoring.");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user