summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2015-03-08 14:34:31 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2015-03-09 16:14:17 -0500
commit2468aa3dffa04e8b42d5ef5eef6e8cea86e88b98 (patch)
tree4802c9ed8faca993d752cc54eb40d7f0d5cac67e
parentef598c37cf50fd8921ce7d49da8886d8fc2fe241 (diff)
downloadrtems-2468aa3dffa04e8b42d5ef5eef6e8cea86e88b98.tar.bz2
vprintk.c: Reorder switch and add default to eliminate warning
-rw-r--r--cpukit/libcsupport/src/vprintk.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/cpukit/libcsupport/src/vprintk.c b/cpukit/libcsupport/src/vprintk.c
index 68c7556793..51e4947e43 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);