-/* $OpenBSD: log.h,v 1.3 2014/11/03 20:15:31 bluhm Exp $ */
+/* $OpenBSD: log.h,v 1.4 2016/07/18 21:20:31 benno Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
void log_init(int);
void log_verbose(int);
-void logit(int, const char *, ...);
-void vlog(int, const char *, va_list);
-void log_warn(const char *, ...);
-void log_warnx(const char *, ...);
-void log_info(const char *, ...);
-void log_debug(const char *, ...);
-void fatal(const char *) __dead;
-void fatalx(const char *) __dead;
+void logit(int, const char *, ...)
+ __attribute__((__format__ (printf, 2, 3)));
+void vlog(int, const char *, va_list)
+ __attribute__((__format__ (printf, 2, 0)));
+void log_warn(const char *, ...)
+ __attribute__((__format__ (printf, 1, 2)));
+void log_warnx(const char *, ...)
+ __attribute__((__format__ (printf, 1, 2)));
+void log_info(const char *, ...)
+ __attribute__((__format__ (printf, 1, 2)));
+void log_debug(const char *, ...)
+ __attribute__((__format__ (printf, 1, 2)));
+void fatal(const char *) __dead
+ __attribute__((__format__ (printf, 1, 0)));
+void fatalx(const char *) __dead
+ __attribute__((__format__ (printf, 1, 0)));
const char *if_type_name(enum iface_type);
const char *nbr_state_name(int);
-/* $OpenBSD: neighbor.c,v 1.9 2007/10/24 19:50:33 claudio Exp $ */
+/* $OpenBSD: neighbor.c,v 1.10 2016/07/18 21:20:31 benno Exp $ */
/*
* Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it>
/* set event structures */
evtimer_set(&nbr->timeout_timer, nbr_timeout_timer, nbr);
- log_debug("nbr_new: neighbor ID %s, peerid %lu",
+ log_debug("nbr_new: neighbor ID %s, peerid %u",
inet_ntoa(nbr->id), nbr->peerid);
return (nbr);
nbr->state != NBR_STA_REQ_RCVD)
nbr_failed_new(nbr);
- log_debug("nbr_del: neighbor ID %s, peerid %lu", inet_ntoa(nbr->id),
+ log_debug("nbr_del: neighbor ID %s, peerid %u", inet_ntoa(nbr->id),
nbr->peerid);
/* stop timer */