summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2019-11-02 00:41:37 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2019-11-02 00:41:37 +0000
commit376565dd01e6195728e511338a4ed6909bd4db88 (patch)
treeb3e80539f48d1988ec87357d10350f2d45277cbb
parentaa4485ab3804c95da0f3dbba7e5e78c890248264 (diff)
Write debug messages to stderr instead of stdout
ok kn@ mpi@
-rw-r--r--usr.sbin/apmd/apmd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/apmd/apmd.c b/usr.sbin/apmd/apmd.c
index a94356633db..82255f5984e 100644
--- a/usr.sbin/apmd/apmd.c
+++ b/usr.sbin/apmd/apmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: apmd.c,v 1.90 2019/11/02 00:40:10 jca Exp $ */
+/* $OpenBSD: apmd.c,v 1.91 2019/11/02 00:41:36 jca Exp $ */
/*
* Copyright (c) 1995, 1996 John T. Kohl
@@ -92,8 +92,8 @@ logmsg(int prio, const char *msg, ...)
va_start(ap, msg);
if (debug) {
- vfprintf(stdout, msg, ap);
- fprintf(stdout, "\n");
+ vfprintf(stderr, msg, ap);
+ fprintf(stderr, "\n");
} else {
vsyslog(prio, msg, ap);
}