summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Buch <boogiewasthere@gmail.com>2015-09-30 23:16:13 +0200
committerDaniel Buch <boogiewasthere@gmail.com>2015-09-30 23:16:13 +0200
commit8b66ad178cbac7caa0c3d6af11cc66a75984fa0f (patch)
treeb5daa7ddcbc4bdfabf8fe8c35c5699fb9196ae46
parent8abf5291564e771bfc62c74a55ab3f3b56f45257 (diff)
sd-pppoe: use strna() instead of strempty()
In cases where we use for instance. log_debug() with a statement + string it is better to output (Service-name: N/A) instead of (Service-name: )
-rw-r--r--src/libsystemd-network/sd-pppoe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/sd-pppoe.c b/src/libsystemd-network/sd-pppoe.c
index f2baafdeb9..cd5a204f8c 100644
--- a/src/libsystemd-network/sd-pppoe.c
+++ b/src/libsystemd-network/sd-pppoe.c
@@ -385,7 +385,7 @@ static int pppoe_send_initiation(sd_pppoe *ppp) {
return r;
log_debug("PPPoE: sent DISCOVER (Service-Name: %s)",
- strempty(ppp->service_name));
+ strna(ppp->service_name));
pppoe_arm_timeout(ppp);