Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 60588
b: refs/heads/master
c: 0aa97d6
h: refs/heads/master
v: v3
  • Loading branch information
Geoff Levand authored and Paul Mackerras committed Jun 28, 2007
1 parent dc4ea27 commit 6283fed
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 72d068951ca3f5428a3149a604ea626d93eecffe
refs/heads/master: 0aa97d6e420039fc4a6040acdf53e56e0f90c0f5
10 changes: 9 additions & 1 deletion trunk/arch/powerpc/boot/stdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,11 @@ int vsprintf(char *buf, const char *fmt, va_list args)

/* get the conversion qualifier */
qualifier = -1;
if (*fmt == 'h' || *fmt == 'l' || *fmt == 'L' || *fmt =='Z') {
if (*fmt == 'l' && *(fmt + 1) == 'l') {
qualifier = 'q';
fmt += 2;
} else if (*fmt == 'h' || *fmt == 'l' || *fmt == 'L'
|| *fmt == 'Z') {
qualifier = *fmt;
++fmt;
}
Expand Down Expand Up @@ -281,6 +285,10 @@ int vsprintf(char *buf, const char *fmt, va_list args)
num = va_arg(args, unsigned long);
if (flags & SIGN)
num = (signed long) num;
} else if (qualifier == 'q') {
num = va_arg(args, unsigned long long);
if (flags & SIGN)
num = (signed long long) num;
} else if (qualifier == 'Z') {
num = va_arg(args, size_t);
} else if (qualifier == 'h') {
Expand Down

0 comments on commit 6283fed

Please sign in to comment.