]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Nicer log output
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Thu, 10 Aug 2017 12:35:14 +0000 (14:35 +0200)
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>
Thu, 10 Aug 2017 12:35:14 +0000 (14:35 +0200)
non-primary is ugly, just omit it (and use primary in the other case).

nest/iface.c

index addb13637dc65befadaa6cd27121f24859568f6d..ff362938e8922798a625a47f66e06116fac59e5d 100644 (file)
@@ -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);