shell: Fix various build issues with string formattors

We get a few different CI failures associated with data type
differences on various platforms.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2021-10-19 09:41:40 -05:00 committed by Kumar Gala
commit fb4d68973f
4 changed files with 6 additions and 6 deletions

View file

@ -104,8 +104,8 @@ static void shell_tdata_dump(const struct k_thread *cthread, void *user_data)
* targets.
*/
#ifdef CONFIG_64BIT
shell_print(shell, "\tTotal execution cycles: %llu (%u %%)",
rt_stats_thread.execution_cycles,
shell_print(shell, "\tTotal execution cycles: %" PRIu64 " (%u %%)",
(uint64_t)rt_stats_thread.execution_cycles,
pcnt);
#else
shell_print(shell, "\tTotal execution cycles: %u (%u %%)",