]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
update-utmp: update log message
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 7 Apr 2023 09:44:22 +0000 (18:44 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 24 May 2023 11:06:10 +0000 (20:06 +0900)
src/update-utmp/update-utmp.c

index 5656ca2761bec32491b3e1e1ed52c1e72fbecb70..2f6d582da92738c9da4113cc6ab9442be89e73b5 100644 (file)
@@ -165,10 +165,9 @@ static int on_runlevel(int argc, char *argv[], void *userdata) {
 
         /* First, get last runlevel */
         r = utmp_get_runlevel(&previous, NULL);
-
         if (r < 0) {
                 if (!IN_SET(r, -ESRCH, -ENOENT))
-                        return log_error_errno(r, "Failed to get current runlevel: %m");
+                        return log_error_errno(r, "Failed to get the last runlevel from utmp: %m");
 
                 previous = 0;
         }
@@ -178,7 +177,7 @@ static int on_runlevel(int argc, char *argv[], void *userdata) {
         if (runlevel < 0)
                 return runlevel;
         if (runlevel == 0) {
-                log_warning("Failed to get new runlevel, utmp update skipped.");
+                log_warning("Failed to get the current runlevel, utmp update skipped.");
                 return 0;
         }