[PATCH 09/15] vprintk.c: Reorder switch and add default to eliminate warning
Joel Sherrill
joel.sherrill at oarcorp.com
Mon Mar 9 17:38:49 UTC 2015
---
cpukit/libcsupport/src/vprintk.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/cpukit/libcsupport/src/vprintk.c b/cpukit/libcsupport/src/vprintk.c
index 68c7556..51e4947 100644
--- a/cpukit/libcsupport/src/vprintk.c
+++ b/cpukit/libcsupport/src/vprintk.c
@@ -158,10 +158,6 @@ void vprintk(
}
switch (lflag) {
- case LFLAG_INT:
- num = sign ? (long long) va_arg(ap, int)
- : (long long) va_arg(ap, unsigned int);
- break;
case LFLAG_LONG:
num = sign ? (long long) va_arg(ap, long)
: (long long) va_arg(ap, unsigned long);
@@ -169,6 +165,11 @@ void vprintk(
case LFLAG_LONG_LONG:
num = va_arg(ap, long long);
break;
+ case LFLAG_INT:
+ default:
+ num = sign ? (long long) va_arg(ap, int)
+ : (long long) va_arg(ap, unsigned int);
+ break;
}
printNum(num, base, sign, width, lead);
--
1.9.3
More information about the devel
mailing list