diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-01-28 06:46:49 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-01-28 06:47:36 +0100 |
commit | e0a720012d7bb0e2c132e99b62234b04c3031382 (patch) | |
tree | c49a5146dd8df2ca0536da065c49b90587477e83 /src/locale | |
parent | ukify: python 3.9 compat followup (diff) | |
download | systemd-e0a720012d7bb0e2c132e99b62234b04c3031382.tar.xz systemd-e0a720012d7bb0e2c132e99b62234b04c3031382.zip |
locale: add missing logs
Diffstat (limited to 'src/locale')
-rw-r--r-- | src/locale/localed.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/locale/localed.c b/src/locale/localed.c index 68c014fd47..5b2dcb7904 100644 --- a/src/locale/localed.c +++ b/src/locale/localed.c @@ -252,11 +252,11 @@ static int method_set_locale(sd_bus_message *m, void *userdata, sd_bus_error *er r = sd_bus_message_read_strv(m, &l); if (r < 0) - return r; + return bus_log_parse_error(r); r = sd_bus_message_read_basic(m, 'b', &interactive); if (r < 0) - return r; + return bus_log_parse_error(r); use_localegen = locale_gen_check_available(); @@ -269,7 +269,7 @@ static int method_set_locale(sd_bus_message *m, void *userdata, sd_bus_error *er new_locale[VARIABLE_LANG] = strdup(l[0]); if (!new_locale[VARIABLE_LANG]) - return -ENOMEM; + return log_oom(); l = strv_free(l); } @@ -303,7 +303,7 @@ static int method_set_locale(sd_bus_message *m, void *userdata, sd_bus_error *er /* Merge with the current settings */ r = locale_context_merge(&c->locale_context, new_locale); if (r < 0) - return r; + return log_oom(); locale_variables_simplify(new_locale); @@ -374,7 +374,7 @@ static int method_set_vc_keyboard(sd_bus_message *m, void *userdata, sd_bus_erro r = sd_bus_message_read(m, "ssbb", &keymap, &keymap_toggle, &convert, &interactive); if (r < 0) - return r; + return bus_log_parse_error(r); keymap = empty_to_null(keymap); keymap_toggle = empty_to_null(keymap_toggle); @@ -573,7 +573,7 @@ static int method_set_x11_keyboard(sd_bus_message *m, void *userdata, sd_bus_err r = sd_bus_message_read(m, "ssssbb", &in.layout, &in.model, &in.variant, &in.options, &convert, &interactive); if (r < 0) - return r; + return bus_log_parse_error(r); x11_context_empty_to_null(&in); |