Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 May 2017 21:18:01 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r318281 - head/contrib/ipfilter/lib
Message-ID:  <201705142118.v4ELI1FH035277@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705142118.v4ELI1FH035277>