projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
usb: ehci-mx6: Handle fixed regulators correctly
[oweals/u-boot.git]
/
lib
/
tiny-printf.c
diff --git
a/lib/tiny-printf.c
b/lib/tiny-printf.c
index 1138c7012aee50c4928f953c4d1d24852b659115..8fc7e48d9942178d07c4e3ef76283ad4011e04d9 100644
(file)
--- a/
lib/tiny-printf.c
+++ b/
lib/tiny-printf.c
@@
-242,6
+242,7
@@
static int _vprintf(struct printf_info *info, const char *fmt, va_list va)
goto abort;
case 'u':
case 'd':
+ case 'i':
div = 1000000000;
if (islong) {
num = va_arg(va, unsigned long);
@@
-251,7
+252,7
@@
static int _vprintf(struct printf_info *info, const char *fmt, va_list va)
num = va_arg(va, unsigned int);
}
- if (ch
== 'd
') {
+ if (ch
!= 'u
') {
if (islong && (long)num < 0) {
num = -(long)num;
out(info, '-');