summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/isakmpd.c
diff options
context:
space:
mode:
authorHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2004-02-19 15:35:17 +0000
committerHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2004-02-19 15:35:17 +0000
commit860b24227b166d1b686f3a86618447ea0eb0296d (patch)
treeced1390f2eccacf79d87e96b9baa4e19abe5e215 /sbin/isakmpd/isakmpd.c
parent6732d4d99fdc3d8410afe7e662f164a8375a936f (diff)
small cleanup of log messages.
ok ho@
Diffstat (limited to 'sbin/isakmpd/isakmpd.c')
-rw-r--r--sbin/isakmpd/isakmpd.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/sbin/isakmpd/isakmpd.c b/sbin/isakmpd/isakmpd.c
index a1762579630..d7e5f7c1005 100644
--- a/sbin/isakmpd/isakmpd.c
+++ b/sbin/isakmpd/isakmpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: isakmpd.c,v 1.56 2004/02/19 09:54:52 ho Exp $ */
+/* $OpenBSD: isakmpd.c,v 1.57 2004/02/19 15:35:16 hshoexer Exp $ */
/* $EOM: isakmpd.c,v 1.54 2000/10/05 09:28:22 niklas Exp $ */
/*
@@ -244,7 +244,7 @@ report (void)
if (!rfp)
{
- log_error ("fopen (\"%s\", \"w\") failed", report_file);
+ log_error ("report: fopen (\"%s\", \"w\") failed", report_file);
return;
}
@@ -347,11 +347,12 @@ write_pid_file (void)
if (fp != NULL)
{
if (fprintf (fp, "%ld\n", (long) getpid ()) < 0)
- log_error ("main: failed to write PID to \"%.100s\"", pid_file);
+ log_error ("write_pid_file: failed to write PID to \"%.100s\"",
+ pid_file);
fclose (fp);
}
else
- log_fatal ("main: fopen (\"%.100s\", \"w\") failed", pid_file);
+ log_fatal ("write_pid_file: fopen (\"%.100s\", \"w\") failed", pid_file);
}
int
@@ -500,7 +501,7 @@ main (int argc, char *argv[])
{
if (errno != EINTR)
{
- log_error ("select");
+ log_error ("main: select");
/*
* In order to give the unexpected error condition time to