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
|
@ -296,7 +296,7 @@ static int cmd_history(const struct shell *shell, size_t argc, char **argv)
|
|||
|
||||
if (len) {
|
||||
shell_print(shell, "[%3d] %s",
|
||||
i++, shell->ctx->temp_buff);
|
||||
(int)i++, shell->ctx->temp_buff);
|
||||
|
||||
} else {
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue