summaryrefslogtreecommitdiff
path: root/src/timedate
diff options
context:
space:
mode:
authorfangxiuning <fangxiuning123@126.com>2020-07-07 10:13:13 +0800
committerfangxiuning <fangxiuning123@126.com>2020-07-08 10:50:59 +0800
commitd836018a73bc0cc9c1525aea0706e56213589a70 (patch)
tree1966231107e46c70288a305f25847d83ee9cbed3 /src/timedate
parentf987a261b460bfdaaa6f5375a7e277772d4096cd (diff)
downloadsystemd-d836018a73bc0cc9c1525aea0706e56213589a70.tar.gz
table add table_log_show_error()
Diffstat (limited to 'src/timedate')
-rw-r--r--src/timedate/timedatectl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/timedate/timedatectl.c b/src/timedate/timedatectl.c
index 96be78746d..102ffece63 100644
--- a/src/timedate/timedatectl.c
+++ b/src/timedate/timedatectl.c
@@ -160,7 +160,7 @@ static int print_status_info(const StatusInfo *i) {
r = table_print(table, NULL);
if (r < 0)
- return log_error_errno(r, "Failed to show table: %m");
+ return table_log_show_error(r);
if (i->rtc_local)
printf("\n%s"
@@ -433,7 +433,7 @@ static int print_ntp_status_info(NTPStatusInfo *i) {
r = table_print(table, NULL);
if (r < 0)
- return log_error_errno(r, "Failed to show table: %m");
+ return table_log_show_error(r);
return 0;
}
@@ -442,7 +442,7 @@ static int print_ntp_status_info(NTPStatusInfo *i) {
log_error("Invalid NTP response");
r = table_print(table, NULL);
if (r < 0)
- return log_error_errno(r, "Failed to show table: %m");
+ return table_log_show_error(r);
return 0;
}
@@ -526,7 +526,7 @@ static int print_ntp_status_info(NTPStatusInfo *i) {
r = table_print(table, NULL);
if (r < 0)
- log_error_errno(r, "Failed to show table: %m");
+ table_log_show_error(r);
return 0;
}