]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-ndisc: use the right object to pass to log_ndisc()
authorLennart Poettering <lennart@poettering.net>
Tue, 24 May 2016 19:16:36 +0000 (21:16 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 26 May 2016 13:34:43 +0000 (15:34 +0200)
There's no "client" object, in both cases. There's only "nd".

This wasn't noticed before, as the context object is currently not actually
used by the log macros.

src/libsystemd-network/sd-ndisc.c

index c4d5eb45d2016f5b597f564cb3da998f19633105..3432c71f339dfee822fac81702b8eb158a6873f1 100644 (file)
@@ -655,7 +655,7 @@ int sd_ndisc_stop(sd_ndisc *nd) {
         if (nd->state == NDISC_STATE_IDLE)
                 return 0;
 
-        log_ndisc(client, "Stopping IPv6 Router Solicitation client");
+        log_ndisc(nd, "Stopping IPv6 Router Solicitation client");
 
         ndisc_reset(nd);
         nd->state = NDISC_STATE_IDLE;
@@ -700,7 +700,7 @@ int sd_ndisc_router_discovery_start(sd_ndisc *nd) {
 
         (void) sd_event_source_set_description(nd->timeout, "ndisc-timeout");
 
-        log_ndisc(client, "Started IPv6 Router Solicitation client");
+        log_ndisc(ns, "Started IPv6 Router Solicitation client");
         return 0;
 
 fail: