]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
lldpcli: use a previously unused variable
authorVincent Bernat <vincent@bernat.im>
Wed, 9 Apr 2014 18:56:04 +0000 (20:56 +0200)
committerVincent Bernat <vincent@bernat.im>
Wed, 9 Apr 2014 18:56:04 +0000 (20:56 +0200)
src/client/conf-system.c

index 3ae0e50804c9f74e80335775e7efc02470fb5431..60d6ad9c56458757823f4f0763f14af66344dbe7 100644 (file)
@@ -97,7 +97,7 @@ cmd_hostname(struct lldpctl_conn_t *conn, struct writer *w,
                lldpctl_atom_dec_ref(config);
                return 0;
        }
-       log_info("lldpctl", "system name set to new value %s", cmdenv_get(env, "hostname"));
+       log_info("lldpctl", "system name set to new value %s", value);
        lldpctl_atom_dec_ref(config);
        return 1;
 }