summaryrefslogtreecommitdiff
path: root/lib/libevent/event.c
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2014-09-01 13:26:30 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2014-09-01 13:26:30 +0000
commite9f53a6d133fe7e2fcd1b0eb4d45a22c33be4253 (patch)
tree6605610acb1d8355eab4ce88f773cbfd2f58aafb /lib/libevent/event.c
parent040de84b9a153f5ef3e7b8d20f57fd9947a56b37 (diff)
The libevent event_log() function called by event_msgx() adds a new
line itself. Do not print a double new line when EVENT_SHOW_METHOD is set. OK nicm@
Diffstat (limited to 'lib/libevent/event.c')
-rw-r--r--lib/libevent/event.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libevent/event.c b/lib/libevent/event.c
index 97ed8f3d061..99dfde61a08 100644
--- a/lib/libevent/event.c
+++ b/lib/libevent/event.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: event.c,v 1.28 2014/04/03 11:27:02 eric Exp $ */
+/* $OpenBSD: event.c,v 1.29 2014/09/01 13:26:29 bluhm Exp $ */
/*
* Copyright (c) 2000-2004 Niels Provos <provos@citi.umich.edu>
@@ -206,8 +206,7 @@ event_base_new(void)
event_errx(1, "%s: no event mechanism available", __func__);
if (evutil_getenv("EVENT_SHOW_METHOD"))
- event_msgx("libevent using: %s\n",
- base->evsel->name);
+ event_msgx("libevent using: %s", base->evsel->name);
/* allocate a single active event queue */
event_base_priority_init(base, 1);