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
|
@ -1670,7 +1670,7 @@ static int cmd_per_adv_sync_delete(const struct shell *sh, size_t argc,
|
|||
}
|
||||
|
||||
if (index >= ARRAY_SIZE(per_adv_syncs)) {
|
||||
shell_error(sh, "Maximum index is %u but %u was requested",
|
||||
shell_error(sh, "Maximum index is %ld but %d was requested",
|
||||
ARRAY_SIZE(per_adv_syncs) - 1, index);
|
||||
}
|
||||
|
||||
|
@ -1807,7 +1807,7 @@ static int cmd_per_adv_sync_transfer(const struct shell *sh, size_t argc,
|
|||
}
|
||||
|
||||
if (index >= ARRAY_SIZE(per_adv_syncs)) {
|
||||
shell_error(sh, "Maximum index is %u but %u was requested",
|
||||
shell_error(sh, "Maximum index is %ld but %d was requested",
|
||||
ARRAY_SIZE(per_adv_syncs) - 1, index);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue