Commit 080d9e4c by Michal Vaner

Nicer log output

non-primary is ugly, just omit it (and use primary in the other case).
parent 5699a203
Showing with 2 additions and 2 deletions
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment