shell: fixing printing macros
Update macros: shell_warn and shell_info to use correct colour formatting. Signed-off-by: Jakub Rzeszutko <jakub.rzeszutko@nordicsemi.no>
This commit is contained in:
parent
d4b4b99272
commit
80a8cfc6b6
1 changed files with 2 additions and 2 deletions
|
@ -569,7 +569,7 @@ void shell_fprintf(const struct shell *shell, enum shell_vt100_color color,
|
|||
* @param[in] ... List of parameters to print.
|
||||
*/
|
||||
#define shell_info(_sh, _ft, ...) \
|
||||
shell_fprintf(_sh, SHELL_NORMAL, _ft "\n", ##__VA_ARGS__)
|
||||
shell_fprintf(_sh, SHELL_INFO, _ft "\n", ##__VA_ARGS__)
|
||||
|
||||
/**
|
||||
* @brief Print normal message to the shell.
|
||||
|
@ -593,7 +593,7 @@ void shell_fprintf(const struct shell *shell, enum shell_vt100_color color,
|
|||
* @param[in] ... List of parameters to print.
|
||||
*/
|
||||
#define shell_warn(_sh, _ft, ...) \
|
||||
shell_fprintf(_sh, SHELL_ERROR, _ft "\n", ##__VA_ARGS__)
|
||||
shell_fprintf(_sh, SHELL_WARNING, _ft "\n", ##__VA_ARGS__)
|
||||
|
||||
/**
|
||||
* @brief Print error message to the shell.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue