diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-11-12 13:23:51 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-11-14 17:01:54 +0100 |
commit | 26a9337690f6fe4f1be4a1b7ae617688c38dc1ec (patch) | |
tree | bc40b028faa1f61226abdb3f81a04f4ee89e55d5 | |
parent | 936d113663040061514f8d9db5a68a6aba46b119 (diff) | |
download | systemd-26a9337690f6fe4f1be4a1b7ae617688c38dc1ec.tar.gz systemd-26a9337690f6fe4f1be4a1b7ae617688c38dc1ec.tar.bz2 systemd-26a9337690f6fe4f1be4a1b7ae617688c38dc1ec.zip |
localed: no need to log twice about reload requests
-rw-r--r-- | src/locale/localed.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/locale/localed.c b/src/locale/localed.c index 94107de62b..01bb5a74c2 100644 --- a/src/locale/localed.c +++ b/src/locale/localed.c @@ -105,7 +105,7 @@ static int vconsole_reload(sd_bus *bus) { "ss", "systemd-vconsole-setup.service", "replace"); if (r < 0) - return log_error_errno(r, "Failed to issue method call: %s", bus_error_message(&error, -r)); + return log_error_errno(r, "Failed to issue method call: %s", bus_error_message(&error, r)); return 0; } @@ -459,9 +459,7 @@ static int method_set_vc_keyboard(sd_bus_message *m, void *userdata, sd_bus_erro log_info("Changed virtual console keymap to '%s' toggle '%s'", strempty(c->vc_keymap), strempty(c->vc_keymap_toggle)); - r = vconsole_reload(sd_bus_message_get_bus(m)); - if (r < 0) - log_error_errno(r, "Failed to request keymap reload: %m"); + (void) vconsole_reload(sd_bus_message_get_bus(m)); (void) sd_bus_emit_properties_changed( sd_bus_message_get_bus(m), |