struct json_writer_private *p = w->priv;
struct json_element *current = TAILQ_LAST(p, json_writer_private);
if (current == NULL) {
- log_warnx(NULL, "unbalanced tags");
+ log_warnx("lldpctl", "unbalanced tags");
return;
}
TAILQ_REMOVE(p, current, next);
{
struct json_writer_private *p = w->priv;
if (TAILQ_EMPTY(p)) {
- log_warnx(NULL, "nothing to output");
+ log_warnx("lldpctl", "nothing to output");
} else if (TAILQ_NEXT(TAILQ_FIRST(p), next) != NULL) {
- log_warnx(NULL, "unbalanced tags");
+ log_warnx("lldpctl", "unbalanced tags");
/* memory will leak... */
} else {
struct json_element *first = TAILQ_FIRST(p);
if (json_dumpf(export,
stdout,
JSON_INDENT(2) | JSON_PRESERVE_ORDER) == -1)
- log_warnx(NULL, "unable to output JSON");
+ log_warnx("lldpctl", "unable to output JSON");
json_decref(first->el);
json_decref(export);
TAILQ_REMOVE(p, first, next);