From: Michal 'vorner' Vaner Date: Thu, 10 Aug 2017 12:35:14 +0000 (+0200) Subject: Nicer log output X-Git-Tag: v2.0.0~17^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=080d9e4ce25f8f14e61ba0a81d5385bf8de3e48f;p=thirdparty%2Fbird.git Nicer log output non-primary is ugly, just omit it (and use primary in the other case). --- diff --git a/nest/iface.c b/nest/iface.c index addb13637..ff362938e 100644 --- a/nest/iface.c +++ b/nest/iface.c @@ -141,8 +141,8 @@ ifa_send_notify(struct proto *p, unsigned c, struct ifa *a) if (p->ifa_notify) { if (p->debug & D_IFACES) - log(L_TRACE "%s < %s address %I/%d on interface %s %s", - p->name, (a->flags & IA_PRIMARY) ? "primary" : "non-primary", + log(L_TRACE "%s <%s address %I/%d on interface %s %s", + p->name, (a->flags & IA_PRIMARY) ? " primary" : "", a->prefix, a->pxlen, a->iface->name, (c & IF_CHANGE_UP) ? "added" : "removed"); p->ifa_notify(p, c, a);