shell: Add __printf_like to shell_fprintf
Add __printf_like modifier to validate strings used by shell. Fixing warnings triggered by this change. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
30cd046760
commit
eb3375f47c
13 changed files with 45 additions and 43 deletions
|
@ -902,8 +902,9 @@ int shell_stop(const struct shell *shell);
|
|||
* @param[in] fmt Format string.
|
||||
* @param[in] ... List of parameters to print.
|
||||
*/
|
||||
void shell_fprintf(const struct shell *shell, enum shell_vt100_color color,
|
||||
const char *fmt, ...);
|
||||
void __printf_like(3, 4) shell_fprintf(const struct shell *shell,
|
||||
enum shell_vt100_color color,
|
||||
const char *fmt, ...);
|
||||
|
||||
/**
|
||||
* @brief vprintf-like function which sends formatted data stream to the shell.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue