kernel: atomics: update print specifiers for atomic_t

The print specifier for `atomic_t` should be updated
to `%ld`, `%lu`, or `%lx` to account for the type
change of `atomic_t` to `long`.

Signed-off-by: Christopher Friedt <chrisfriedt@gmail.com>
This commit is contained in:
Christopher Friedt 2021-10-26 14:04:17 -04:00 committed by Anas Nashif
commit 3e86c627f7
12 changed files with 29 additions and 32 deletions

View file

@ -310,7 +310,7 @@ static int cmd_shell_stats_show(const struct shell *shell, size_t argc,
ARG_UNUSED(argc);
ARG_UNUSED(argv);
shell_print(shell, "Lost logs: %u", shell->stats->log_lost_cnt);
shell_print(shell, "Lost logs: %lu", shell->stats->log_lost_cnt);
return 0;
}