]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
analyze: update log message
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 19 Oct 2018 15:43:02 +0000 (00:43 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 19 Oct 2018 15:43:02 +0000 (00:43 +0900)
src/analyze/analyze-verify.c

index 402203a3c79960ee3082fdd479dcaa934428f060..42f2a8f3452260543931d1344a4295f88b88c4dc 100644 (file)
@@ -179,9 +179,9 @@ static int verify_documentation(Unit *u, bool check_man) {
                         k = show_man_page(*p + 4, true);
                         if (k != 0) {
                                 if (k < 0)
-                                        log_unit_error_errno(u, r, "Can't show %s: %m", *p);
+                                        log_unit_error_errno(u, k, "Can't show %s: %m", *p + 4);
                                 else {
-                                        log_unit_error_errno(u, r, "man %s command failed with code %d", *p + 4, k);
+                                        log_unit_error(u, "Command 'man %s' failed with code %d", *p + 4, k);
                                         k = -ENOEXEC;
                                 }
                                 if (r == 0)