[rtems commit] score: Add a FALLTHROUGH comment to kvprintf()
Sebastian Huber
sebh at rtems.org
Wed Jul 18 06:56:28 UTC 2018
Module: rtems
Branch: master
Commit: bda8f80cbfcc15e0e44edf3e219d2400b99457e5
Changeset: http://git.rtems.org/rtems/commit/?id=bda8f80cbfcc15e0e44edf3e219d2400b99457e5
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Jul 18 08:54:57 2018 +0200
score: Add a FALLTHROUGH comment to kvprintf()
This change was added to the FreeBSD version of this function.
This was spotted by Coverity Scan.
---
cpukit/score/src/iovprintf.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/cpukit/score/src/iovprintf.c b/cpukit/score/src/iovprintf.c
index cf54ecb..f3f8219 100644
--- a/cpukit/score/src/iovprintf.c
+++ b/cpukit/score/src/iovprintf.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
* Copyright (c) 1986, 1988, 1991, 1993
* The Regents of the University of California. All rights reserved.
* (c) UNIX System Laboratories, Inc.
@@ -37,7 +39,7 @@
#include <rtems/score/io.h>
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD: head/sys/kern/subr_prf.c 320908 2017-07-12 07:30:14Z rlibby $");
+__FBSDID("$FreeBSD: head/sys/kern/subr_prf.c 336417 2018-07-17 14:56:54Z markj $");
#include <sys/param.h>
#include <string.h>
@@ -157,6 +159,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) {
More information about the vc
mailing list