summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2016-09-03 10:02:12 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2016-09-03 10:02:12 +0000
commitc976d2c75f89202e9719d0c8f0fc9ef4caa54898 (patch)
treea0058da056634a00785ba5eaf0afa3ec3cc31d98 /usr.sbin
parentf2aa2a7f3bcac937d15307196026f0ba8bce8075 (diff)
Use DPRINTF instead of #ifdef DEBUG + log_debug().
Pointed out by benno@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/httpd/proc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/httpd/proc.c b/usr.sbin/httpd/proc.c
index 4e9fd742982..a3c3ce549c2 100644
--- a/usr.sbin/httpd/proc.c
+++ b/usr.sbin/httpd/proc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: proc.c,v 1.24 2016/09/02 11:25:14 reyk Exp $ */
+/* $OpenBSD: proc.c,v 1.25 2016/09/03 10:02:11 reyk Exp $ */
/*
* Copyright (c) 2010 - 2014 Reyk Floeter <reyk@openbsd.org>
@@ -566,10 +566,8 @@ proc_run(struct privsep *ps, struct privsep_proc *p,
fatalx(__func__);
}
-#ifdef DEBUG
- log_debug("%s: %s %d/%d, pid %d", __func__, p->p_title,
+ DPRINTF("%s: %s %d/%d, pid %d", __func__, p->p_title,
ps->ps_instance + 1, ps->ps_instances[p->p_id], getpid());
-#endif
if (run != NULL)
run(ps, p, arg);