summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-08-15 19:28:06 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-08-16 07:43:34 +0900
commite226badc9c2e63ecd78d77651a4de93591c95fbe (patch)
tree8a681dad3e6c6c4824db76684f79b7e05985f8bc /src/network
parent9841802955e043733a31a68120c40e8c15804fa6 (diff)
downloadsystemd-e226badc9c2e63ecd78d77651a4de93591c95fbe.tar.gz
networkctl: avoid outputting '(null)' for LLDP ports without description
Diffstat (limited to 'src/network')
-rw-r--r--src/network/networkctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkctl.c b/src/network/networkctl.c
index 654955ba08..3100a2e04e 100644
--- a/src/network/networkctl.c
+++ b/src/network/networkctl.c
@@ -893,7 +893,7 @@ static int dump_lldp_neighbors(Table *table, const char *prefix, int ifindex) {
"%s on port %s%s%s%s",
strna(system_name), strna(port_id),
isempty(port_description) ? "" : " (",
- port_description,
+ strempty(port_description),
isempty(port_description) ? "" : ")");
if (r < 0)
return r;