Bluetooth: Add color logging support
Add basic color logging support. Error logs will be printed in red whereas warn() logs in yellow. The support is behind a Kconfig option in case someone needs to build the stack for a terminal that doesn't support the ANSI color codes. Change-Id: I080e32db68f87e81f1bb54aa4c634f7cd38f1e33 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
5d80ae929c
commit
30e0e64407
2 changed files with 20 additions and 2 deletions
|
@ -172,6 +172,12 @@ config BLUETOOTH_DEBUG
|
|||
serial console.
|
||||
|
||||
if BLUETOOTH_DEBUG
|
||||
config BLUETOOTH_DEBUG_COLOR
|
||||
bool "Use colored logs"
|
||||
default y
|
||||
help
|
||||
Use color in the logs. This requires an ANSI capable terminal.
|
||||
|
||||
config BLUETOOTH_DEBUG_HCI_CORE
|
||||
bool "Bluetooth HCI core debug"
|
||||
default n
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue