-/* $OpenBSD: smtpd.h,v 1.663 2021/03/31 17:47:16 eric Exp $ */
+/* $OpenBSD: smtpd.h,v 1.664 2021/03/31 19:09:19 eric Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
char *, size_t);
void log_trace_verbose(int);
-void log_trace(int, const char *, ...)
- __attribute__((format (printf, 2, 3)));
+void log_trace0(const char *, ...)
+ __attribute__((format (printf, 1, 2)));
+#define log_trace(m, ...) do { if (tracing & (m)) log_trace0(__VA_ARGS__); } while (0)
/* waitq.c */
int waitq_wait(void *, void (*)(void *, void *, void *), void *);
-/* $OpenBSD: util.c,v 1.152 2020/11/29 20:07:38 tb Exp $ */
+/* $OpenBSD: util.c,v 1.153 2021/03/31 19:09:19 eric Exp $ */
/*
* Copyright (c) 2000,2001 Markus Friedl. All rights reserved.
}
void
-log_trace(int mask, const char *emsg, ...)
+log_trace0(const char *emsg, ...)
{
va_list ap;
- if (tracing & mask) {
- va_start(ap, emsg);
- vlog(LOG_DEBUG, emsg, ap);
- va_end(ap);
- }
+ va_start(ap, emsg);
+ vlog(LOG_DEBUG, emsg, ap);
+ va_end(ap);
}
void