samples: philosophers: fix wrong assert type
zephyrproject/zephyr/samples/philosophers/src/main.c: In function 'philosopher': zephyrproject/zephyr/include/zephyr/sys/__assert.h:44:52: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'stack_data_t' {aka 'long unsigned int'} [-Wformat=] Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
parent
a477bddc59
commit
58b927eb70
|
@ -87,7 +87,7 @@
|
|||
#endif
|
||||
#define take(x) do { \
|
||||
stack_data_t data; k_stack_pop(x, &data, K_FOREVER); \
|
||||
__ASSERT(data == MAGIC, "data was %x\n", data); \
|
||||
__ASSERT(data == MAGIC, "data was %lx\n", data); \
|
||||
} while ((0))
|
||||
#define drop(x) k_stack_push(x, MAGIC)
|
||||
#define fork_type_str "stacks"
|
||||
|
|
Loading…
Reference in a new issue