svn commit: r318281 - head/contrib/ipfilter/lib

Cy Schubert cy at FreeBSD.org
Sun May 14 21:18:03 UTC 2017


Author: cy
Date: Sun May 14 21:18:01 2017
New Revision: 318281
URL: https://svnweb.freebsd.org/changeset/base/318281

Log:
  Separate the ipfilter function/static string from the error with a
  colon (:) in error messages to assist the user in parsing out the error
  from where or which object the error message refers to.
  
  MFC after:	3 days

Modified:
  head/contrib/ipfilter/lib/ipf_perror.c

Modified: head/contrib/ipfilter/lib/ipf_perror.c
==============================================================================
--- head/contrib/ipfilter/lib/ipf_perror.c	Sun May 14 20:39:01 2017	(r318280)
+++ head/contrib/ipfilter/lib/ipf_perror.c	Sun May 14 21:18:01 2017	(r318281)
@@ -10,7 +10,7 @@ ipf_perror(err, string)
 	if (err == 0)
 		fprintf(stderr, "%s\n", string);
 	else
-		fprintf(stderr, "%s %s\n", string, ipf_strerror(err));
+		fprintf(stderr, "%s: %s\n", string, ipf_strerror(err));
 }
 
 int


More information about the svn-src-all mailing list