summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-04-07 11:44:22 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-05-24 13:06:10 +0200
commit87ae54533c6ad7047a152b7238f682eda334a9e0 (patch)
tree577e8b4a864c35f3f3ac40943d23b8fc4d49f183 /src
parentupdate-utmp: downgrade log level of ignored failure (diff)
downloadsystemd-87ae54533c6ad7047a152b7238f682eda334a9e0.tar.xz
systemd-87ae54533c6ad7047a152b7238f682eda334a9e0.zip
update-utmp: update log message
Diffstat (limited to 'src')
-rw-r--r--src/update-utmp/update-utmp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/update-utmp/update-utmp.c b/src/update-utmp/update-utmp.c
index 5656ca2761..2f6d582da9 100644
--- a/src/update-utmp/update-utmp.c
+++ b/src/update-utmp/update-utmp.c
@@ -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;
}