From: Daniel Buch Date: Wed, 30 Sep 2015 21:16:13 +0000 (+0200) Subject: sd-pppoe: use strna() instead of strempty() X-Git-Tag: v227~45^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8b66ad178cbac7caa0c3d6af11cc66a75984fa0f;p=thirdparty%2Fsystemd.git 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: ) --- diff --git a/src/libsystemd-network/sd-pppoe.c b/src/libsystemd-network/sd-pppoe.c index f2baafdeb97..cd5a204f8c6 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);