summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrainer <rainer@openbsd.org>2008-07-21 19:14:15 +0000
committerrainer <rainer@openbsd.org>2008-07-21 19:14:15 +0000
commit1a96a09d1daa5986fa4759451aa9af5d183a9c24 (patch)
tree1e822bd55c94020088b987109500b1a57d577b54
parentmove processing of EAPOL frames away from ieee80211_{input,output}.c (diff)
downloadwireguard-openbsd-1a96a09d1daa5986fa4759451aa9af5d183a9c24.tar.xz
wireguard-openbsd-1a96a09d1daa5986fa4759451aa9af5d183a9c24.zip
fix ugly debug dump output. found with bluhm@
ok thib@, bluhm@
-rw-r--r--usr.sbin/rtadvd/dump.c10
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,