From: Alexandru Ardelean Date: Thu, 16 Apr 2015 05:58:12 +0000 (+0300) Subject: client: add some log_debug() messages X-Git-Tag: 0.7.15~45^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F106%2Fhead;p=thirdparty%2Flldpd.git client: add some log_debug() messages Signed-off-by: Alexandru Ardelean --- diff --git a/src/client/conf-lldp.c b/src/client/conf-lldp.c index dae43817..df82eebc 100644 --- a/src/client/conf-lldp.c +++ b/src/client/conf-lldp.c @@ -77,6 +77,8 @@ cmd_portid_type_local(struct lldpctl_conn_t *conn, struct writer *w, const char *id = cmdenv_get(env, "port-id"); const char *descr = cmdenv_get(env, "port-descr"); + log_debug("lldpctl", "lldp PortID TLV Subtype Local port-id '%s' port-descr '%s'", id, descr); + if (!id || !strlen(id)) { log_warnx("lldpctl", "no id speficied"); return 0; @@ -149,6 +151,8 @@ static int cmd_chassis_cap_advertise(struct lldpctl_conn_t *conn, struct writer *w, struct cmd_env *env, void *arg) { + log_debug("lldpctl", "lldp capabilities-advertisements %s", arg?"enable":"disable"); + lldpctl_atom_t *config = lldpctl_get_configuration(conn); if (config == NULL) { log_warnx("lldpctl", "unable to get configuration from lldpd. %s", @@ -175,6 +179,8 @@ static int cmd_chassis_mgmt_advertise(struct lldpctl_conn_t *conn, struct writer *w, struct cmd_env *env, void *arg) { + log_debug("lldpctl", "lldp management-addresses-advertisements %s", arg?"enable":"disable"); + lldpctl_atom_t *config = lldpctl_get_configuration(conn); if (config == NULL) { log_warnx("lldpctl", "unable to get configuration from lldpd. %s",