diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/common/sprintf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/common/sprintf.c b/firmware/common/sprintf.c index 768d69ca61..0f012f7340 100644 --- a/firmware/common/sprintf.c +++ b/firmware/common/sprintf.c | |||
@@ -119,6 +119,7 @@ static int format( | |||
119 | 119 | ||
120 | case 'x': | 120 | case 'x': |
121 | case 'X': | 121 | case 'X': |
122 | pad='0'; | ||
122 | uval = va_arg (ap, int); | 123 | uval = va_arg (ap, int); |
123 | do | 124 | do |
124 | { | 125 | { |
@@ -133,6 +134,7 @@ static int format( | |||
133 | switch(ch) { | 134 | switch(ch) { |
134 | case 'x': | 135 | case 'x': |
135 | case 'X': | 136 | case 'X': |
137 | pad='0'; | ||
136 | ulval = va_arg (ap, long); | 138 | ulval = va_arg (ap, long); |
137 | do | 139 | do |
138 | { | 140 | { |