-/* $OpenBSD: engine.c,v 1.15 2021/06/16 14:06:17 florian Exp $ */
+/* $OpenBSD: engine.c,v 1.16 2021/06/18 11:44:48 florian Exp $ */
/*
* Copyright (c) 2017, 2021 Florian Obser <florian@openbsd.org>
void
log_dhcp_hdr(struct dhcp_hdr *dhcp_hdr)
{
+#ifndef SMALL
char hbuf[INET_ADDRSTRLEN];
log_debug("dhcp_hdr op: %s (%d)", dhcp_hdr->op == DHCP_BOOTREQUEST ?
dhcp_hdr->chaddr[12], dhcp_hdr->chaddr[13], dhcp_hdr->chaddr[14],
dhcp_hdr->chaddr[15]);
/* ignore sname and file, if we ever print it use strvis(3) */
+#endif
}
const char *
-/* $OpenBSD: log.h,v 1.1 2021/02/26 16:16:37 florian Exp $ */
+/* $OpenBSD: log.h,v 1.2 2021/06/18 11:44:48 florian Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
#ifndef LOG_H
#define LOG_H
-#include <stdarg.h>
#include <sys/cdefs.h>
+#include <stdarg.h>
+#include <stdlib.h>
#ifndef SMALL
void log_init(int, int);
#define log_init(x...) do {} while(0)
#define log_procinit(x...) do {} while(0)
#define log_setverbose(x...) do {} while(0)
+#define log_getverbose(x...) (0)
#define log_warn(x...) do {} while(0)
#define log_warnx(x...) do {} while(0)
#define log_info(x...) do {} while(0)