X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fbasic%2Flog.c;h=69977f15d69ba657ea9faa01f7eea45f62e7f0ae;hp=921c952f833dff4c76e7f8ff0cea554021171065;hb=02313252e36e309776829312ab87e9a489e6572f;hpb=1d883c59d17d938fc4307be44e5f654bd62fdeb3 diff --git a/src/basic/log.c b/src/basic/log.c index 921c952f8..69977f15d 100644 --- a/src/basic/log.c +++ b/src/basic/log.c @@ -942,7 +942,7 @@ int log_set_max_level_from_string(const char *e) { t = log_level_from_string(e); if (t < 0) - return t; + return -EINVAL; log_set_max_level(t); return 0;