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:
Jakub Rzeszutko 2018-11-26 15:38:23 +01:00 committed by Carles Cufí
commit 80a8cfc6b6

View file

@ -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.