Skip to content

Commit

Permalink
core: Fix assert printf format string
Browse files Browse the repository at this point in the history
cppcheck said: core/assert.c:23: warning (invalidPrintfArgType_sint): %d in
format string (no. 2) requires 'int' but the argument type is 'unsigned
int'.
  • Loading branch information
Joakim Nohlgård committed Feb 16, 2017
1 parent 95a4e75 commit 47e9706
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/assert.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#ifdef DEBUG_ASSERT_VERBOSE
NORETURN void _assert_failure(const char *file, unsigned line)
{
printf("%s:%d => ", file, line); \
printf("%s:%u => ", file, line); \
core_panic(PANIC_ASSERT_FAIL, assert_crash_message); \
}
#else
Expand Down

0 comments on commit 47e9706

Please sign in to comment.