summaryrefslogtreecommitdiff
path: root/src/login/loginctl.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2020-01-10 18:23:24 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2020-01-10 18:28:30 +0900
commitbd17fa8cd870bc403e698fafa5ac0bd6dc4af901 (patch)
tree7b228e82ef39ce1f9bd6e2684df046d1bd790768 /src/login/loginctl.c
parent964a7745de89e80a5b84e2d421831f06e5ebc911 (diff)
downloadsystemd-bd17fa8cd870bc403e698fafa5ac0bd6dc4af901.tar.gz
tree-wide: use table_log_add_error()
Diffstat (limited to 'src/login/loginctl.c')
-rw-r--r--src/login/loginctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/login/loginctl.c b/src/login/loginctl.c
index 61f619de9c..bff6354177 100644
--- a/src/login/loginctl.c
+++ b/src/login/loginctl.c
@@ -189,7 +189,7 @@ static int list_sessions(int argc, char *argv[], void *userdata) {
TABLE_STRING, seat,
TABLE_STRING, strna(tty));
if (r < 0)
- return log_error_errno(r, "Failed to add row to table: %m");
+ return table_log_add_error(r);
}
r = sd_bus_message_exit_container(reply);
@@ -246,7 +246,7 @@ static int list_users(int argc, char *argv[], void *userdata) {
TABLE_UID, (uid_t) uid,
TABLE_STRING, user);
if (r < 0)
- return log_error_errno(r, "Failed to add row to table: %m");
+ return table_log_add_error(r);
}
r = sd_bus_message_exit_container(reply);
@@ -298,7 +298,7 @@ static int list_seats(int argc, char *argv[], void *userdata) {
r = table_add_cell(table, NULL, TABLE_STRING, seat);
if (r < 0)
- return log_error_errno(r, "Failed to add row to table: %m");
+ return table_log_add_error(r);
}
r = sd_bus_message_exit_container(reply);