summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2010-06-10 13:22:26 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2010-06-10 13:22:26 +0000
commit4e2c4fe0bf44a2ff64806e16bbff4490ad38b67f (patch)
tree3135be0d354a5f65168d151bb30acdbe7e22ac02 /usr.sbin
parent04a52ea6d311d2f7761969cf530f87b36a4ee46b (diff)
No need to print FEC twice. Remove it in the log function.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ldpd/log.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ldpd/log.c b/usr.sbin/ldpd/log.c
index 9d07eb57306..8f7a6ea1830 100644
--- a/usr.sbin/ldpd/log.c
+++ b/usr.sbin/ldpd/log.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: log.c,v 1.6 2010/06/09 14:01:03 claudio Exp $ */
+/* $OpenBSD: log.c,v 1.7 2010/06/10 13:22:25 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -297,10 +297,10 @@ log_fec(struct map *map)
static char buf[32];
char pstr[32];
- if (snprintf(buf, sizeof(buf), "FEC %s/%u",
+ if (snprintf(buf, sizeof(buf), "%s/%u",
inet_ntop(AF_INET, &map->prefix, pstr, sizeof(pstr)),
map->prefixlen) == -1)
- return ("FEC ???");
+ return ("???");
return (buf);
}