-/* $OpenBSD: snmpd.h,v 1.92 2021/01/27 07:21:54 deraadt Exp $ */
+/* $OpenBSD: snmpd.h,v 1.93 2021/01/28 20:45:14 martijn Exp $ */
/*
* Copyright (c) 2007, 2008, 2012 Reyk Floeter <reyk@openbsd.org>
socklen_t, struct sockaddr *, socklen_t);
ssize_t recvfromto(int, void *, size_t, int, struct sockaddr *,
socklen_t *, struct sockaddr *, socklen_t *);
-void print_debug(const char *, ...);
-void print_verbose(const char *, ...);
const char *log_in6addr(const struct in6_addr *);
const char *print_host(struct sockaddr_storage *, char *, size_t);
-/* $OpenBSD: util.c,v 1.10 2020/06/30 17:11:49 martijn Exp $ */
+/* $OpenBSD: util.c,v 1.11 2021/01/28 20:45:14 martijn Exp $ */
/*
* Copyright (c) 2014 Bret Stephen Lambert <blambert@openbsd.org>
*
return (ret);
}
-void
-print_debug(const char *emsg, ...)
-{
- va_list ap;
-
- if (log_getverbose() > 2) {
- va_start(ap, emsg);
- vfprintf(stderr, emsg, ap);
- va_end(ap);
- }
-}
-
-void
-print_verbose(const char *emsg, ...)
-{
- va_list ap;
-
- if (log_getverbose()) {
- va_start(ap, emsg);
- vfprintf(stderr, emsg, ap);
- va_end(ap);
- }
-}
-
const char *
log_in6addr(const struct in6_addr *addr)
{