0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

Nicer log output

non-primary is ugly, just omit it (and use primary in the other case).
This commit is contained in:
Michal 'vorner' Vaner 2017-08-10 14:35:14 +02:00
parent 5699a2036c
commit 080d9e4ce2
No known key found for this signature in database
GPG Key ID: F700D0C019E4C66F

View File

@ -141,8 +141,8 @@ ifa_send_notify(struct proto *p, unsigned c, struct ifa *a)
if (p->ifa_notify) if (p->ifa_notify)
{ {
if (p->debug & D_IFACES) if (p->debug & D_IFACES)
log(L_TRACE "%s < %s address %I/%d on interface %s %s", log(L_TRACE "%s <%s address %I/%d on interface %s %s",
p->name, (a->flags & IA_PRIMARY) ? "primary" : "non-primary", p->name, (a->flags & IA_PRIMARY) ? " primary" : "",
a->prefix, a->pxlen, a->iface->name, a->prefix, a->pxlen, a->iface->name,
(c & IF_CHANGE_UP) ? "added" : "removed"); (c & IF_CHANGE_UP) ? "added" : "removed");
p->ifa_notify(p, c, a); p->ifa_notify(p, c, a);