diff options
| author | Damien George <damien.p.george@gmail.com> | 2014-04-17 18:58:09 +0100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2014-04-17 18:58:09 +0100 |
| commit | d0f9f6cd3f4b541dd4324dd73371638185178cdb (patch) | |
| tree | e2c16675abf9f707576cbdf43a1754d4b67d258d /stmhal/printf.c | |
| parent | 71d3112f7e34d0bdd70012463cf31871bea57c45 (diff) | |
py: Fix pfenv_print_strn to return correct number of chars printed.
With this fix, all tests in tests/basics pass on pyboard.
Diffstat (limited to 'stmhal/printf.c')
| -rw-r--r-- | stmhal/printf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/printf.c b/stmhal/printf.c index b1eace28d..ea90f4980 100644 --- a/stmhal/printf.c +++ b/stmhal/printf.c @@ -244,7 +244,7 @@ void strn_print_strn(void *data, const char *str, unsigned int len) { strn_pfenv->cur += len; strn_pfenv->remain -= len; } - + int vsnprintf(char *str, size_t size, const char *fmt, va_list ap) { strn_pfenv_t strn_pfenv; strn_pfenv.cur = str; |
