Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bluetooth: shell: refactor shell print for Bluetooth-specific context
This commit aims to reduce the Bluetooth shell code footprint with the following changes: - Introduced `bt_shell_private.c` and `bt_shell_private.h` to provide common functions for the Bluetooth shell. - For now, equivalent function to `shell_info`, `shell_print`, `shell_warn ` and `shell_error`, but without `sh` as Bluetooth shell relies on `ctx_shell` when there is no `sh` from outside. The cost of newly added `bt_shell_info_impl` ... `bt_shell_error_impl` will be insignificant if we have many individual calls that need to pass both `sh` and `color` parameter each time. Signed-off-by: Pisit Sawangvonganan <[email protected]>
- Loading branch information