Skip to content

Commit 1163cb9

Browse files
committed
stmhal: Change calls to pfenv_printf to pfenv_vprintf.
Fixes printing bugs introduced by cb66f41.
1 parent cb66f41 commit 1163cb9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

stmhal/printf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ int DEBUG_printf(const char *fmt, ...) {
8181
(void)stream;
8282
va_list ap;
8383
va_start(ap, fmt);
84-
int ret = pfenv_printf(&pfenv_stdout, fmt, ap);
84+
int ret = pfenv_vprintf(&pfenv_stdout, fmt, ap);
8585
va_end(ap);
8686
return ret;
8787
}
@@ -124,7 +124,7 @@ int vsnprintf(char *str, size_t size, const char *fmt, va_list ap) {
124124
pfenv_t pfenv;
125125
pfenv.data = &strn_pfenv;
126126
pfenv.print_strn = strn_print_strn;
127-
int len = pfenv_printf(&pfenv, fmt, ap);
127+
int len = pfenv_vprintf(&pfenv, fmt, ap);
128128
// add terminating null byte
129129
if (size > 0) {
130130
if (strn_pfenv.remain == 0) {

0 commit comments

Comments
 (0)