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:
Fabio Baltieri 2023-09-06 17:01:36 +00:00 committed by Fabio Baltieri
parent a477bddc59
commit 58b927eb70

View file

@ -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"