summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/smtp.c
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2011-12-12 17:17:56 +0000
committerEric Faurot <eric@cvs.openbsd.org>2011-12-12 17:17:56 +0000
commit8205dd800030aae9b69927a72d45afdaa96146a9 (patch)
tree5fa86de4334c98ac909ace3515b82ac988736f01 /usr.sbin/smtpd/smtp.c
parent1673db70b304cfbe6b3ff1416b676ba4f4f40555 (diff)
display proc name rather than function name in debug message
ok gilles@ chl@
Diffstat (limited to 'usr.sbin/smtpd/smtp.c')
-rw-r--r--usr.sbin/smtpd/smtp.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/smtpd/smtp.c b/usr.sbin/smtpd/smtp.c
index 3372833130d..e12d8728b8a 100644
--- a/usr.sbin/smtpd/smtp.c
+++ b/usr.sbin/smtpd/smtp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtp.c,v 1.94 2011/11/14 19:23:41 chl Exp $ */
+/* $OpenBSD: smtp.c,v 1.95 2011/12/12 17:17:55 eric Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -378,7 +378,7 @@ smtp_setup_events(void)
int avail = availdesc();
TAILQ_FOREACH(l, env->sc_listeners, entry) {
- log_debug("smtp_setup_events: listen on %s port %d flags 0x%01x"
+ log_debug("smtp: listen on %s port %d flags 0x%01x"
" cert \"%s\"", ss_to_text(&l->ss), ntohs(l->port),
l->flags, l->ssl_cert_name);
@@ -403,7 +403,7 @@ smtp_disable_events(void)
{
struct listener *l;
- log_debug("smtp_disable_events: closing listening sockets");
+ log_debug("smtp: closing listening sockets");
while ((l = TAILQ_FIRST(env->sc_listeners)) != NULL) {
TAILQ_REMOVE(env->sc_listeners, l, entry);
event_del(&l->ev);
@@ -420,7 +420,7 @@ smtp_pause(void)
{
struct listener *l;
- log_debug("smtp_pause: pausing listening sockets");
+ log_debug("smtp: pausing listening sockets");
env->sc_opts |= SMTPD_SMTP_PAUSED;
TAILQ_FOREACH(l, env->sc_listeners, entry)
@@ -432,7 +432,7 @@ smtp_resume(void)
{
struct listener *l;
- log_debug("smtp_resume: resuming listening sockets");
+ log_debug("smtp: resuming listening sockets");
env->sc_opts &= ~SMTPD_SMTP_PAUSED;
TAILQ_FOREACH(l, env->sc_listeners, entry)
@@ -525,7 +525,7 @@ smtp_new(struct listener *l)
{
struct session *s;
- log_debug("smtp_new: incoming client on listener: %p", l);
+ log_debug("smtp: new client on listener: %p", l);
if (env->sc_opts & SMTPD_SMTP_PAUSED)
fatalx("smtp_new: unexpected client");