From: Lennart Poettering Date: Wed, 30 Sep 2015 12:16:40 +0000 (+0200) Subject: log: properly return -EINVAL from log_set_max_level_from_string() X-Git-Tag: v227.2^2~22 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=02313252e36e309776829312ab87e9a489e6572f;hp=02313252e36e309776829312ab87e9a489e6572f;ds=sidebyside log: properly return -EINVAL from log_set_max_level_from_string() If we just return the value we got from log_level_from_string() on failure we'll return -1, which is not a proper error code. log_set_target_from_string() did get this right already, hence let's fix this here too. ---