]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
client: fix copy+paste for some vars 138/head
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Thu, 24 Sep 2015 13:40:40 +0000 (16:40 +0300)
committerAlexandru Ardelean <ardeleanalex@gmail.com>
Thu, 24 Sep 2015 13:40:43 +0000 (16:40 +0300)
Only affects logging.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
src/daemon/client.c

index 89520cf46de7d258907149b556e817676d9ad3e6..f7961c72ce523394d97d305826a2fda3993ec7da 100644 (file)
@@ -164,13 +164,13 @@ client_handle_set_configuration(struct lldpd *cfg, enum hmsg_type *type,
        }
        if (CHANGED(c_cap_advertise)) {
                log_debug("rpc", "%s chassis capabilities advertisement",
-                   config->c_promisc?"enable":"disable");
+                   config->c_cap_advertise?"enable":"disable");
                cfg->g_config.c_cap_advertise = config->c_cap_advertise;
                levent_update_now(cfg);
        }
        if (CHANGED(c_mgmt_advertise)) {
                log_debug("rpc", "%s management addresses advertisement",
-                   config->c_promisc?"enable":"disable");
+                   config->c_mgmt_advertise?"enable":"disable");
                cfg->g_config.c_mgmt_advertise = config->c_mgmt_advertise;
                levent_update_now(cfg);
        }