INN commit: trunk/backends (ninpaths.c)

INN Commit rra at isc.org
Sat Aug 8 17:20:23 UTC 2015


    Date: Saturday, August 8, 2015 @ 10:20:23
  Author: iulius
Revision: 9928

ninpaths:  Improve logging

When fopen fails, log that the error comes from ninpaths.  Otherwise,
the log line in the errlog file is not helpful to fix the issue.

Modified:
  trunk/backends/ninpaths.c

------------+
 ninpaths.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: ninpaths.c
===================================================================
--- ninpaths.c	2015-08-08 17:18:23 UTC (rev 9927)
+++ ninpaths.c	2015-08-08 17:20:23 UTC (rev 9928)
@@ -207,7 +207,7 @@
 	if (writedump(d)<0)
             unlink(buf);
     } else {
-	perror("writedumpfile: fopen");
+	perror("writedumpfile: fopen failed for ninpaths");
     }
 }
 
@@ -323,7 +323,7 @@
 	fclose(d);
 	return i;
     } else {
-	perror("readdumpfile: fopen");
+	perror("readdumpfile: fopen failed for ninpaths");
 	return -1;
     }
 }



More information about the inn-committers mailing list