Skip to content
Commit 282b47cf authored by Chris Friedt's avatar Chris Friedt Committed by Benjamin Cabé
Browse files

posix: cond + mutex: log messages generate warnings for 32-bit timeouts



Previously, log messages would generate warnings (escalated to errors
in CI) when CONFIG_TIMEOUT_64BIT=n.

For example,

```
west build -p auto -b qemu_cortex_m0 -t run tests/posix/timers/ \
  -- -DCONFIG_TIMEOUT_64BIT=n
..
warning: format '%llx' expects argument of type \
  'long long unsigned int', but argument 3 has type 'k_ticks_t' \
  {aka 'unsigned int'}
```

Use portable print specifiers and cast the argument to int64_t.

Signed-off-by: default avatarChris Friedt <cfriedt@tenstorrent.com>
parent e363fdd1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment