summaryrefslogtreecommitdiffstats
path: root/src/login
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-08-17 13:09:49 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-08-17 15:01:54 +0200
commit87305b0fbfc0e40a948cf0a683bcf9d47b8a41a3 (patch)
tree77327a406617112eef3e904d98d6b4f05eaba44f /src/login
parentsd-messages: make the table wider (diff)
downloadsystemd-87305b0fbfc0e40a948cf0a683bcf9d47b8a41a3.tar.xz
systemd-87305b0fbfc0e40a948cf0a683bcf9d47b8a41a3.zip
sd-messages: rename newly added constants
This hasn't been through a release yet, so we are free to change the name. Closes #24270. C.f. https://github.com/systemd/systemd/commit/907506695549c689710cd267583f6fd439711dcf#r80812414
Diffstat (limited to 'src/login')
-rw-r--r--src/login/logind-dbus.c2
-rw-r--r--src/login/logind-utmp.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c
index a426842bbb..65c001215d 100644
--- a/src/login/logind-dbus.c
+++ b/src/login/logind-dbus.c
@@ -2361,7 +2361,7 @@ static int method_cancel_scheduled_shutdown(sd_bus_message *message, void *userd
log_struct(LOG_INFO,
LOG_MESSAGE("System shutdown has been cancelled"),
"ACTION=%s", handle_action_to_string(a->handle),
- "MESSAGE_ID=" SD_MESSAGE_LOGIND_SHUTDOWN_CANCELED_STR,
+ "MESSAGE_ID=" SD_MESSAGE_SHUTDOWN_CANCELED_STR,
username ? "OPERATOR=%s" : NULL, username);
utmp_wall("System shutdown has been cancelled",
diff --git a/src/login/logind-utmp.c b/src/login/logind-utmp.c
index 06b1bcf9b4..3f1503ad48 100644
--- a/src/login/logind-utmp.c
+++ b/src/login/logind-utmp.c
@@ -90,7 +90,7 @@ static int warn_wall(Manager *m, usec_t n) {
log_struct(level,
LOG_MESSAGE("%s", l),
"ACTION=%s", handle_action_to_string(m->scheduled_shutdown_action->handle),
- "MESSAGE_ID=" SD_MESSAGE_LOGIND_SHUTDOWN_STR,
+ "MESSAGE_ID=" SD_MESSAGE_SHUTDOWN_SCHEDULED_STR,
username ? "OPERATOR=%s" : NULL, username);
if (m->enable_wall_messages)