summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1998-04-05 11:23:36 +0000
committerRalf Baechle <ralf@linux-mips.org>1998-04-05 11:23:36 +0000
commit4318fbda2a7ee51caafdc4eb1f8028a3f0605142 (patch)
treecddb50a81d7d1a628cc400519162080c6d87868e /lib
parent36ea5120664550fae6d31f1c6f695e4f8975cb06 (diff)
o Merge with Linux 2.1.91.
o First round of bugfixes for the SC/MC CPUs. o FPU context switch fixes. o Lazy context switches. o Faster syscalls. o Removed dead code. o Shitloads of other things I forgot ...
Diffstat (limited to 'lib')
-rw-r--r--lib/vsprintf.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c
index 8c3daf203..b2e72d584 100644
--- a/lib/vsprintf.c
+++ b/lib/vsprintf.c
@@ -112,13 +112,14 @@ static char * number(char * str, long num, int base, int size, int precision
*str++ = ' ';
if (sign)
*str++ = sign;
- if (type & SPECIAL)
+ if (type & SPECIAL) {
if (base==8)
*str++ = '0';
else if (base==16) {
*str++ = '0';
*str++ = digits[33];
}
+ }
if (!(type & LEFT))
while (size-- > 0)
*str++ = c;
@@ -281,12 +282,12 @@ int vsprintf(char *buf, const char *fmt, va_list args)
}
if (qualifier == 'l')
num = va_arg(args, unsigned long);
- else if (qualifier == 'h')
+ else if (qualifier == 'h') {
if (flags & SIGN)
num = va_arg(args, short);
else
num = va_arg(args, unsigned short);
- else if (flags & SIGN)
+ } else if (flags & SIGN)
num = va_arg(args, int);
else
num = va_arg(args, unsigned int);