Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Nov 2024 21:34:16 GMT
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: e59630a3ddc0 - stable/14 - dconschat: Increase WARNS to 2
Message-ID:  <202411252134.4APLYGXM066063@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=e59630a3ddc0683df664459c59d633b881bd4b1d

commit e59630a3ddc0683df664459c59d633b881bd4b1d
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2024-11-03 20:04:08 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2024-11-25 21:33:46 +0000

    dconschat: Increase WARNS to 2
    
    Follow the existing pattern of fflush() in verbose mode.
    
    PR:             71665
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit 75d11bfbc6d4289e4b3d91414e46a3af51f4402a)
---
 usr.sbin/dconschat/Makefile    | 2 +-
 usr.sbin/dconschat/dconschat.c | 6 ++++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/usr.sbin/dconschat/Makefile b/usr.sbin/dconschat/Makefile
index f5f7795f284b..f0020c2f8475 100644
--- a/usr.sbin/dconschat/Makefile
+++ b/usr.sbin/dconschat/Makefile
@@ -6,6 +6,6 @@ CFLAGS+= -I${SRCTOP}/sys
 
 LIBADD=	kvm
 
-WARNS?=	1
+WARNS?=	2
 
 .include <bsd.prog.mk>
diff --git a/usr.sbin/dconschat/dconschat.c b/usr.sbin/dconschat/dconschat.c
index 72d1aa276bd3..d18477c51522 100644
--- a/usr.sbin/dconschat/dconschat.c
+++ b/usr.sbin/dconschat/dconschat.c
@@ -519,8 +519,10 @@ ok:
 		rlen = len;
 
 #if 1
-	if (verbose == 1)
-		printf("[%d]", rlen); fflush(stdout);
+	if (verbose == 1) {
+		printf("[%d]", rlen);
+		fflush(stdout);
+	}
 #endif
 
 again:



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