]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-pppoe: use strna() instead of strempty() 1427/head
authorDaniel Buch <boogiewasthere@gmail.com>
Wed, 30 Sep 2015 21:16:13 +0000 (23:16 +0200)
committerDaniel Buch <boogiewasthere@gmail.com>
Wed, 30 Sep 2015 21:16:13 +0000 (23:16 +0200)
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: )

src/libsystemd-network/sd-pppoe.c

index f2baafdeb97bc9b5a4bb356a83630ea80306b268..cd5a204f8c615260c37fd00b39642adcd9782498 100644 (file)
@@ -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);