zephyr/lib
Nicolas Pitre 33312cfd98 prf.c: remove buffer limitation on field width and string copy
The z_prf() function currently allocates a 200-byte buffer on the
stack to copy strings into, and then perform left/right alignment
and padding. Not only this is a pretty large chunk of stack usage,
but this imposes limitations on field width and string length. Also
the string is copied not only once but _thrice_ making this code
less than optimal.

Let's rework the code to get rid of both the field width limit and
string length limit, as well as the two extra memory copy instances.

While at it, let's fixes printf("%08s", "abcd") which used to
produce "0000abcd".

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2019-07-14 23:07:44 -04:00
..
cmsis_rtos_v1 cleanup: include/: move atomic.h to sys/atomic.h 2019-06-27 22:55:49 -04:00
cmsis_rtos_v2 CMSIS v2: Work around time unit confusion 2019-07-02 22:52:29 -04:00
gui gui: Move lvgl into a zephyr module 2019-07-06 07:58:44 -04:00
libc prf.c: remove buffer limitation on field width and string copy 2019-07-14 23:07:44 -04:00
os malloc: make sure returned memory is properly aligned 2019-07-03 14:17:29 -07:00
posix cleanup: include/: move misc/slist.h to sys/slist.h 2019-06-27 22:55:49 -04:00
updatehub cleanup: include/: move misc/reboot.h to power/reboot.h 2019-06-27 22:55:49 -04:00
CMakeLists.txt lib: updatehub: Add UpdateHub.io support 2019-06-05 00:20:37 +02:00
Kconfig lib: updatehub: Add UpdateHub.io support 2019-06-05 00:20:37 +02:00