Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
1163cb9c
Commit
1163cb9c
authored
Jul 20, 2014
by
Damien George
Browse files
stmhal: Change calls to pfenv_printf to pfenv_vprintf.
Fixes printing bugs introduced by
cb66f41e
.
parent
cb66f41e
Changes
1
Hide whitespace changes
Inline
Side-by-side
stmhal/printf.c
View file @
1163cb9c
...
...
@@ -81,7 +81,7 @@ int DEBUG_printf(const char *fmt, ...) {
(
void
)
stream
;
va_list
ap
;
va_start
(
ap
,
fmt
);
int
ret
=
pfenv_printf
(
&
pfenv_stdout
,
fmt
,
ap
);
int
ret
=
pfenv_
v
printf
(
&
pfenv_stdout
,
fmt
,
ap
);
va_end
(
ap
);
return
ret
;
}
...
...
@@ -124,7 +124,7 @@ int vsnprintf(char *str, size_t size, const char *fmt, va_list ap) {
pfenv_t
pfenv
;
pfenv
.
data
=
&
strn_pfenv
;
pfenv
.
print_strn
=
strn_print_strn
;
int
len
=
pfenv_printf
(
&
pfenv
,
fmt
,
ap
);
int
len
=
pfenv_
v
printf
(
&
pfenv
,
fmt
,
ap
);
// add terminating null byte
if
(
size
>
0
)
{
if
(
strn_pfenv
.
remain
==
0
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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