Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Jul 2019 16:52:25 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r350087 - stable/12/usr.sbin/rtsold
Message-ID:  <201907171652.x6HGqPrC005065@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Wed Jul 17 16:52:25 2019
New Revision: 350087
URL: https://svnweb.freebsd.org/changeset/base/350087

Log:
  MFC r344629:
  rtsol: Use vwarnx(3) to log messages to standard error.

Modified:
  stable/12/usr.sbin/rtsold/rtsold.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/usr.sbin/rtsold/rtsold.c
==============================================================================
--- stable/12/usr.sbin/rtsold/rtsold.c	Wed Jul 17 16:50:53 2019	(r350086)
+++ stable/12/usr.sbin/rtsold/rtsold.c	Wed Jul 17 16:52:25 2019	(r350087)
@@ -743,10 +743,8 @@ warnmsg(int priority, const char *func, const char *ms
 
 	va_start(ap, msg);
 	if (fflag) {
-		if (priority <= log_upto) {
-			(void)vfprintf(stderr, msg, ap);
-			(void)fprintf(stderr, "\n");
-		}
+		if (priority <= log_upto)
+			vwarnx(msg, ap);
 	} else {
 		snprintf(buf, sizeof(buf), "<%s> %s", func, msg);
 		msg = buf;



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