From fddd50720c1426be15a9d5904264c74def204f71 Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Wed, 17 Jul 2019 16:52:25 +0000 Subject: [PATCH] MFC r344629: rtsol: Use vwarnx(3) to log messages to standard error. --- usr.sbin/rtsold/rtsold.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/usr.sbin/rtsold/rtsold.c b/usr.sbin/rtsold/rtsold.c index 8d31b43aad0..c1bfa400b5f 100644 --- a/usr.sbin/rtsold/rtsold.c +++ b/usr.sbin/rtsold/rtsold.c @@ -743,10 +743,8 @@ warnmsg(int priority, const char *func, const char *msg, ...) 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; -- 2.45.0