Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Nov 2024 20:20:26 GMT
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 75d11bfbc6d4 - main - dconschat: Increase WARNS to 2
Message-ID:  <202411032020.4A3KKQQr094702@gitrepo.freebsd.org>

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

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

commit 75d11bfbc6d4289e4b3d91414e46a3af51f4402a
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2024-11-03 20:04:08 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2024-11-03 20:18:39 +0000

    dconschat: Increase WARNS to 2
    
    Follow the existing pattern of fflush() in verbose mode.
    
    PR:             71665
    Sponsored by:   The FreeBSD Foundation
---
 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 70f59d7a5d34..c57522c57119 100644
--- a/usr.sbin/dconschat/Makefile
+++ b/usr.sbin/dconschat/Makefile
@@ -5,6 +5,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?202411032020.4A3KKQQr094702>