zephyr/subsys/shell
Nicolas Pitre fb73ac392c lib/os/cbprintf_nano.c: several improvements
This makes cbprintf_nano.c much closer to the standard printf and
therefore more useful. The following are now implemented:

- right justification for everything (only for numbers previously)
- precision value for numbers, chars and strings
- width/precision passed as arguments with *
- "unlimited" padding length
- lower/uppercase hex output
- the #, + and ' ' flags are supported

And the code was heavily reworked to reduce its size as much as
possible to mitigate the size growth. Still, the binary resulting
from cbprintf_nano.c is now between 10% and 20% bigger depending on
the architecture. This is still far smaller than cbprintf_complete.c
which remains about twice as big on average even without FP support.

Many unit tests that were skipped with CONFIG_CBPRINTF_NANO are now
enabled, and a few more were added for good measure.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2021-02-23 19:39:59 +01:00
..
modules shell: device_service: refine level output 2021-02-19 15:46:16 -05:00
CMakeLists.txt
Kconfig shell: documentation update 2020-11-30 16:03:01 -06:00
Kconfig.backends shell: Fix typo in a comment 2020-09-15 09:44:42 -05:00
Kconfig.template.shell_log_queue_size
Kconfig.template.shell_log_queue_timeout
shell_cmds.c shell: shell_utils internal api update 2021-01-14 12:07:25 +01:00
shell_dummy.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
shell_fprintf.c shell: internal api update: fprintf 2021-01-14 12:07:25 +01:00
shell_help.c lib/os/cbprintf_nano.c: several improvements 2021-02-23 19:39:59 +01:00
shell_help.h shell: internal api update: help module 2021-01-14 12:07:25 +01:00
shell_history.c shell: internal api update: history module 2021-01-14 12:07:25 +01:00
shell_log_backend.c shell: shell_utils internal api update 2021-01-14 12:07:25 +01:00
shell_ops.c shell: shell_utils internal api update 2021-01-14 12:07:25 +01:00
shell_ops.h shell: shell_ops internal api update 2021-01-14 12:07:25 +01:00
shell_rtt.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
shell_telnet_protocol.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
shell_telnet.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
shell_uart.c mgmt: smp: shell: allow to configure multiple RX buffers via Kconfig 2020-10-07 14:51:06 +02:00
shell_utils.c shell: shell_utils internal api update 2021-01-14 12:07:25 +01:00
shell_utils.h shell: shell_utils internal api update 2021-01-14 12:07:25 +01:00
shell_vt100.h
shell_wildcard.c shell: shell_utils internal api update 2021-01-14 12:07:25 +01:00
shell_wildcard.h shell: internal api update: wildcards 2021-01-14 12:07:25 +01:00
shell.c subsys/shell: check for shell context before accessing it 2021-02-22 15:20:37 +01:00