Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
1346cbbc
Commit
1346cbbc
authored
Jan 27, 2015
by
funshine
Browse files
fix string.format, maybe partialy
parent
6a0599d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/libc/c_stdio.c
View file @
1346cbbc
...
...
@@ -407,7 +407,18 @@ void c_format(void *putp, putcf putf, char *fmt, va_list va)
putchw
(
putp
,
putf
,
w
,
lz
,
bf
);
break
;
}
case
'd'
:
case
'o'
:
{
#ifdef PRINTF_LONG_SUPPORT
if
(
lng
)
uli2a
(
va_arg
(
va
,
unsigned
long
int
),
8
,
0
,
bf
);
else
#endif
ui2a
(
va_arg
(
va
,
unsigned
int
),
8
,
0
,
bf
);
putchw
(
putp
,
putf
,
w
,
lz
,
bf
);
break
;
}
case
'd'
:
case
'i'
:
{
#ifdef PRINTF_LONG_SUPPORT
if
(
lng
)
...
...
@@ -427,7 +438,8 @@ void c_format(void *putp, putcf putf, char *fmt, va_list va)
ui2a
(
va_arg
(
va
,
unsigned
int
),
16
,
(
ch
==
'X'
),
bf
);
putchw
(
putp
,
putf
,
w
,
lz
,
bf
);
break
;
case
'g'
:
case
'e'
:
case
'E'
:
case
'f'
:
case
'g'
:
case
'G'
:
{
d2a
(
va_arg
(
va
,
double
),
bf
);
putchw
(
putp
,
putf
,
w
,
lz
,
bf
);
...
...
pre_build/latest/nodemcu_latest.bin
View file @
1346cbbc
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment