dconschat: Increase WARNS to 2

Follow the existing pattern of fflush() in verbose mode.

PR:		71665
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Ed Maste
2024-11-03 15:04:08 -05:00
parent 43bfb4e714
commit 75d11bfbc6
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -5,6 +5,6 @@ CFLAGS+= -I${SRCTOP}/sys
LIBADD= kvm
WARNS?= 1
WARNS?= 2
.include <bsd.prog.mk>
+4 -2
View File
@@ -519,8 +519,10 @@ dconschat_read_dcons(struct dcons_state *dc, int port, char *buf, int len)
rlen = len;
#if 1
if (verbose == 1)
printf("[%d]", rlen); fflush(stdout);
if (verbose == 1) {
printf("[%d]", rlen);
fflush(stdout);
}
#endif
again: