[PATCH] Add fallthrough comment to kvprintf()
Sebastian Huber
sebastian.huber at embedded-brains.de
Tue Jul 17 12:12:43 UTC 2018
STYLE(9) recommends a FALLTHROUGH comment. Coverity Scan also
complained about this area.
---
sys/kern/subr_prf.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c
index 618d47fe81a..e93aa9cc44c 100644
--- a/sys/kern/subr_prf.c
+++ b/sys/kern/subr_prf.c
@@ -716,6 +716,7 @@ reswitch: switch (ch = (u_char)*fmt++) {
padc = '0';
goto reswitch;
}
+ /* FALLTHROUGH */
case '1': case '2': case '3': case '4':
case '5': case '6': case '7': case '8': case '9':
for (n = 0;; ++fmt) {
--
2.13.7
More information about the freebsd-hackers
mailing list