summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorfangxiuning <fangxiuning123@126.com>2020-07-08 09:16:52 +0200
committerfangxiuning <fangxiuning123@126.com>2020-07-08 09:16:52 +0200
commit4b6607d94933ff297b6893e4eb5cdc622cc97504 (patch)
treeccf24a4720c3b5181e2b82dffb6c528d5448b695 /src/network
parenttable add table_log_sort_error() (diff)
downloadsystemd-4b6607d94933ff297b6893e4eb5cdc622cc97504.tar.xz
systemd-4b6607d94933ff297b6893e4eb5cdc622cc97504.zip
table use table_log_print_error() instead of table_log_show_error
Diffstat (limited to 'src/network')
-rw-r--r--src/network/networkctl.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/network/networkctl.c b/src/network/networkctl.c
index 3b9da74e43..cc4639aeaf 100644
--- a/src/network/networkctl.c
+++ b/src/network/networkctl.c
@@ -719,7 +719,7 @@ static int list_links(int argc, char *argv[], void *userdata) {
r = table_print(table, NULL);
if (r < 0)
- return log_error_errno(r, "Failed to print table: %m");
+ return table_log_print_error(r);
if (arg_legend)
printf("\n%i links listed.\n", c);
@@ -1064,7 +1064,7 @@ static int dump_address_labels(sd_netlink *rtnl) {
r = table_print(table, NULL);
if (r < 0)
- return log_error_errno(r, "Failed to print table: %m");
+ return table_log_print_error(r);
return 0;
}
@@ -2129,7 +2129,7 @@ static int link_status_one(
r = table_print(table, NULL);
if (r < 0)
- return log_error_errno(r, "Failed to print table: %m");
+ return table_log_print_error(r);
return show_logs(info);
}
@@ -2201,7 +2201,7 @@ static int system_status(sd_netlink *rtnl, sd_hwdb *hwdb) {
r = table_print(table, NULL);
if (r < 0)
- return log_error_errno(r, "Failed to print table: %m");
+ return table_log_print_error(r);
return show_logs(NULL);
}
@@ -2421,7 +2421,7 @@ static int link_lldp_status(int argc, char *argv[], void *userdata) {
r = table_print(table, NULL);
if (r < 0)
- return log_error_errno(r, "Failed to print table: %m");
+ return table_log_print_error(r);
if (arg_legend) {
lldp_capabilities_legend(all);