X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fshared%2Flog.c;h=1cbc9d625074f00d6f9b24e300e6145fdf2ec27e;hp=6a10dc4540ed288032f6fefb3ccedaf730d777a3;hb=6dc1e7e0ba35c078b533d06a4933edae38fd94ad;hpb=a6903061530cac5fbaa99a080a93221c02c349f9 diff --git a/src/shared/log.c b/src/shared/log.c index 6a10dc454..1cbc9d625 100644 --- a/src/shared/log.c +++ b/src/shared/log.c @@ -658,6 +658,11 @@ _noreturn_ void log_assert_failed_unreachable(const char *text, const char *file log_assert(text, file, line, func, "Code should not be reached '%s' at %s:%u, function %s(). Aborting."); } +int __log_oom(const char *file, int line, const char *func) { + log_meta(LOG_ERR, file, line, func, "Out of memory."); + return -ENOMEM; +} + int log_set_target_from_string(const char *e) { LogTarget t;