From 4b6607d94933ff297b6893e4eb5cdc622cc97504 Mon Sep 17 00:00:00 2001 From: fangxiuning Date: Wed, 8 Jul 2020 15:16:52 +0800 Subject: table use table_log_print_error() instead of table_log_show_error --- src/timedate/timedatectl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/timedate') diff --git a/src/timedate/timedatectl.c b/src/timedate/timedatectl.c index 102ffece63..eaac3b3e35 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 table_log_show_error(r); + return table_log_print_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 table_log_show_error(r); + return table_log_print_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 table_log_show_error(r); + return table_log_print_error(r); return 0; } @@ -526,7 +526,7 @@ static int print_ntp_status_info(NTPStatusInfo *i) { r = table_print(table, NULL); if (r < 0) - table_log_show_error(r); + return table_log_print_error(r); return 0; } -- cgit v1.2.1