kernel: sched: fix ticks logging

- Logging supports printing 64-bit values now. Cast to unsigned long and
  use %lu all times.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2022-11-23 13:42:04 +01:00 committed by Carles Cufí
parent b9f495282e
commit 737d799660
1 changed files with 1 additions and 6 deletions

View File

@ -1419,12 +1419,7 @@ static int32_t z_tick_sleep(k_ticks_t ticks)
__ASSERT(!arch_is_in_isr(), "");
#ifndef CONFIG_TIMEOUT_64BIT
/* LOG subsys does not handle 64-bit values
* https://github.com/zephyrproject-rtos/zephyr/issues/26246
*/
LOG_DBG("thread %p for %u ticks", _current, ticks);
#endif
LOG_DBG("thread %p for %lu ticks", _current, (unsigned long)ticks);
/* wait of 0 ms is treated as a 'yield' */
if (ticks == 0) {