summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/session.c
diff options
context:
space:
mode:
authorSebastian Benoit <benno@cvs.openbsd.org>2016-06-06 15:59:11 +0000
committerSebastian Benoit <benno@cvs.openbsd.org>2016-06-06 15:59:11 +0000
commitd15aa21b537fbe7c21fa4add74e8196d5e3c6b8f (patch)
tree5674f6d7f4451b0b9870d0bac936245406636644 /usr.sbin/bgpd/session.c
parent337e7f793336842ab15a256a96bd327258835ae4 (diff)
Add format attributes to the proper functions and then fix the warning in
session.c ok mpi@
Diffstat (limited to 'usr.sbin/bgpd/session.c')
-rw-r--r--usr.sbin/bgpd/session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c
index 8c853a1a0d2..a71339e8da2 100644
--- a/usr.sbin/bgpd/session.c
+++ b/usr.sbin/bgpd/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.347 2015/11/20 23:26:08 florian Exp $ */
+/* $OpenBSD: session.c,v 1.348 2016/06/06 15:59:10 benno Exp $ */
/*
* Copyright (c) 2003, 2004, 2005 Henning Brauer <henning@openbsd.org>
@@ -2017,7 +2017,7 @@ parse_open(struct peer *peer)
/* check bgpid for validity - just disallow 0 */
if (ntohl(bgpid) == 0) {
- log_peer_warnx(&peer->conf, "peer BGPID %lu unacceptable",
+ log_peer_warnx(&peer->conf, "peer BGPID %u unacceptable",
ntohl(bgpid));
session_notification(peer, ERR_OPEN, ERR_OPEN_BGPID,
NULL, 0);