diff options
| author | Roy Marples <roy@marples.name> | 2017-04-12 11:10:20 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2017-04-12 11:10:20 +0100 |
| commit | 1a1db77f5f8245f9d5e20462b649cdfa3a9fb79f (patch) | |
| tree | b1f06a539d07bdd1dc45305e900301e9e6833770 /src/ipv6nd.c | |
| parent | 2eb366ec504e940518b9d270b615903f540686b0 (diff) | |
| download | dhcpcd-1a1db77f5f8245f9d5e20462b649cdfa3a9fb79f.tar.xz | |
To be consitent, do the same to loginfo as we just did for logdebug.
Diffstat (limited to 'src/ipv6nd.c')
| -rw-r--r-- | src/ipv6nd.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ipv6nd.c b/src/ipv6nd.c index e46196ca..dbae9b79 100644 --- a/src/ipv6nd.c +++ b/src/ipv6nd.c @@ -362,7 +362,7 @@ ipv6nd_reachable(struct ra *rap, int flags) if (flags & IPV6ND_REACHABLE) { if (rap->lifetime && rap->expired) { - loginfo("%s: %s is reachable again", + loginfox("%s: %s is reachable again", rap->iface->name, rap->sfrom); rap->expired = 0; rt_build(rap->iface->ctx, AF_INET6); @@ -639,7 +639,7 @@ ipv6nd_dadcallback(void *arg) ifp->name); goto try_script; } - loginfo("%s: deleting address %s", + loginfox("%s: deleting address %s", ifp->name, ap->saddr); if (if_address6(RTM_DELADDR, ap) == -1 && errno != EADDRNOTAVAIL && errno != ENXIO) @@ -836,7 +836,7 @@ ipv6nd_handlera(struct dhcpcd_ctx *ctx, struct interface *ifp, * routers like to decrease the advertised valid and preferred times * in accordance with the own prefix times which would result in too * much needless log spam. */ - logfunc = new_rap ? loginfo : logdebugx, + logfunc = new_rap ? loginfox : logdebugx, logfunc("%s: Router Advertisement from %s", ifp->name, ctx->sfrom); @@ -1508,7 +1508,7 @@ ipv6nd_handlena(struct dhcpcd_ctx *ctx, struct interface *ifp, /* Node is no longer a router, so remove it from consideration */ if (!is_router && !rap->expired) { - loginfo("%s: %s not a router (%s)", + loginfox("%s: %s not a router (%s)", ifp->name, taddr, ctx->sfrom); rap->expired = 1; rt_build(ifp->ctx, AF_INET6); @@ -1519,7 +1519,7 @@ ipv6nd_handlena(struct dhcpcd_ctx *ctx, struct interface *ifp, if (is_solicited && is_router && rap->lifetime) { if (rap->expired) { rap->expired = 0; - loginfo("%s: %s reachable (%s)", + loginfox("%s: %s reachable (%s)", ifp->name, taddr, ctx->sfrom); rt_build(ifp->ctx, AF_INET6); script_runreason(rap->iface, "ROUTERADVERT"); /* XXX */ @@ -1614,7 +1614,7 @@ ipv6nd_startrs1(void *arg) struct interface *ifp = arg; struct rs_state *state; - loginfo("%s: soliciting an IPv6 router", ifp->name); + loginfox("%s: soliciting an IPv6 router", ifp->name); if (ipv6nd_open(ifp->ctx) == -1) { logerr(__func__); return; |
