projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
91bc76c
)
- Fix a bug in printf.
author
Alex Ionescu
<aionescu@gmail.com>
Sun, 13 Nov 2005 06:11:38 +0000
(06:11 +0000)
committer
Alex Ionescu
<aionescu@gmail.com>
Sun, 13 Nov 2005 06:11:38 +0000
(06:11 +0000)
svn path=/trunk/; revision=19194
reactos/boot/freeldr/freeldr/ui/tui.c
patch
|
blob
|
history
diff --git
a/reactos/boot/freeldr/freeldr/ui/tui.c
b/reactos/boot/freeldr/freeldr/ui/tui.c
index
04ef9df
..
91b1313
100644
(file)
--- a/
reactos/boot/freeldr/freeldr/ui/tui.c
+++ b/
reactos/boot/freeldr/freeldr/ui/tui.c
@@
-42,7
+42,10
@@
int printf(const char *format, ... )
switch (c = *(format++))
{
case 'd': case 'u': case 'x':
- *_itoa(va_arg(ap, unsigned long), str, 10) = 0;
+ if (c == 'x')
+ *_itoa(va_arg(ap, unsigned long), str, 16) = 0;
+ else
+ *_itoa(va_arg(ap, unsigned long), str, 10) = 0;
ptr = str;