aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib/builtin/lv_sprintf_builtin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdlib/builtin/lv_sprintf_builtin.c')
-rw-r--r--src/stdlib/builtin/lv_sprintf_builtin.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/stdlib/builtin/lv_sprintf_builtin.c b/src/stdlib/builtin/lv_sprintf_builtin.c
index d5fc55537..fc34db4d1 100644
--- a/src/stdlib/builtin/lv_sprintf_builtin.c
+++ b/src/stdlib/builtin/lv_sprintf_builtin.c
@@ -552,7 +552,7 @@ static size_t _etoa(out_fct_type out, char * buffer, size_t idx, size_t maxlen,
#endif // PRINTF_SUPPORT_FLOAT
// internal vsnprintf
-static int _lv_vsnprintf(out_fct_type out, char * buffer, const size_t maxlen, const char * format, va_list va)
+static int lv_vsnprintf_inner(out_fct_type out, char * buffer, const size_t maxlen, const char * format, va_list va)
{
unsigned int flags, width, precision, n;
size_t idx = 0U;
@@ -759,7 +759,7 @@ static int _lv_vsnprintf(out_fct_type out, char * buffer, const size_t maxlen, c
va_list copy;
va_copy(copy, *vaf->va);
- idx += _lv_vsnprintf(out, buffer + idx, maxlen - idx, vaf->fmt, copy);
+ idx += lv_vsnprintf_inner(out, buffer + idx, maxlen - idx, vaf->fmt, copy);
va_end(copy);
}
else {
@@ -873,14 +873,14 @@ int lv_snprintf(char * buffer, size_t count, const char * format, ...)
{
va_list va;
va_start(va, format);
- const int ret = _lv_vsnprintf(_out_buffer, buffer, count, format, va);
+ const int ret = lv_vsnprintf_inner(_out_buffer, buffer, count, format, va);
va_end(va);
return ret;
}
int lv_vsnprintf(char * buffer, size_t count, const char * format, va_list va)
{
- return _lv_vsnprintf(_out_buffer, buffer, count, format, va);
+ return lv_vsnprintf_inner(_out_buffer, buffer, count, format, va);
}
#endif /*LV_STDLIB_BUILTIN*/