diff options
| author | Ed Maste <emaste@FreeBSD.org> | 2024-11-03 20:04:08 +0000 |
|---|---|---|
| committer | Ed Maste <emaste@FreeBSD.org> | 2024-11-25 21:33:46 +0000 |
| commit | e59630a3ddc0683df664459c59d633b881bd4b1d (patch) | |
| tree | a091ded790a7108270e46ca3f3cbfc92556ed699 | |
| parent | 93a321b60750df2900e0a856c5e7210276147816 (diff) | |
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)
| -rw-r--r-- | usr.sbin/dconschat/Makefile | 2 | ||||
| -rw-r--r-- | 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: |
