native_posix: Ensure printf fed type matches format specifier

In Zephyr we have the rule of "do not use stdint defined types",
but unfortunately that leaves us with no properly defined
format specifiers for printing values out.
So cast to stdint types in this expression to actually be able to
do so.

Fixes Coverity CID: 205798
Fixes Coverity CID: 205825

Signed-off-by: Alberto Escolar Piedras <alpi@oticon.com>
This commit is contained in:
Alberto Escolar Piedras 2019-11-20 16:40:27 +01:00 committed by Ioannis Glaropoulos
commit 423f344fab

View file

@ -102,8 +102,8 @@ static void hwm_sleep_until_next_timer(void)
/* LCOV_EXCL_START */ /* LCOV_EXCL_START */
posix_print_warning("next_timer_time corrupted (%"PRIu64"<= %" posix_print_warning("next_timer_time corrupted (%"PRIu64"<= %"
PRIu64", timer idx=%i)\n", PRIu64", timer idx=%i)\n",
next_timer_time, (uint64_t)next_timer_time,
simu_time, (uint64_t)simu_time,
next_timer_index); next_timer_index);
/* LCOV_EXCL_STOP */ /* LCOV_EXCL_STOP */
} }