diff options
author | Rainer Giedat <rainer@cvs.openbsd.org> | 2008-07-21 19:14:16 +0000 |
---|---|---|
committer | Rainer Giedat <rainer@cvs.openbsd.org> | 2008-07-21 19:14:16 +0000 |
commit | a9742443496f17c1a7ae97abed8bf5191fc67d7f (patch) | |
tree | 402835e7c53fa4dab79a0a2fae96d1ae56bde38d /usr.sbin | |
parent | a451f9ff38dff3fd5667958720d5b2daba1567f3 (diff) |
fix ugly debug dump output. found with bluhm@
ok thib@, bluhm@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/rtadvd/dump.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/rtadvd/dump.c b/usr.sbin/rtadvd/dump.c index b2f94bff7f8..f96fb8b9e3e 100644 --- a/usr.sbin/rtadvd/dump.c +++ b/usr.sbin/rtadvd/dump.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dump.c,v 1.9 2008/06/08 21:08:57 rainer Exp $ */ +/* $OpenBSD: dump.c,v 1.10 2008/07/21 19:14:15 rainer Exp $ */ /* $KAME: dump.c,v 1.27 2002/05/29 14:23:55 itojun Exp $ */ /* @@ -150,10 +150,10 @@ rtadvd_dump() /* Router configuration variables */ log_info(" DefaultLifetime: %d, MaxAdvInterval: %d, " - "MinAdvInterval: %d" + "MinAdvInterval: %d, " "Flags: %s%s, Preference: %s, MTU: %d", rai->lifetime, rai->maxinterval, rai->mininterval, - rai->managedflg ? "M" : "", rai->otherflg ? "O" : "", + rai->managedflg ? "M" : "-", rai->otherflg ? "O" : "-", rtpref_str[(rai->rtpref >> 3) & 0xff], rai->linkmtu); log_info(" ReachableTime: %d, RetransTimer: %d, " "CurHopLimit: %d", rai->reachabletime, @@ -192,8 +192,8 @@ rtadvd_dump() vltime = lifetime(pfx->validlifetime); pltime = lifetime(pfx->preflifetime); asprintf(&flags, "%s%s", - pfx->onlinkflg ? "L" : "", - pfx->autoconfflg ? "A" : ""); + pfx->onlinkflg ? "L" : "-", + pfx->autoconfflg ? "A" : "-"); log_info(" %s/%d(%s, vltime: %s%s, " "pltime: %s%s, flags: %s)", inet_ntop(AF_INET6, &pfx->prefix, prefixbuf, |