Skip to content

Commit

Permalink
samples: philosophers: fix wrong assert type
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
fabiobaltieri committed Sep 6, 2023
1 parent a477bdd commit 58b927e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/philosophers/src/phil_obj_abstract.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 58b927e

Please sign in to comment.