mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
core: Fix assert printf format string
cppcheck said: core/assert.c:23: warning (invalidPrintfArgType_sint): %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'.
This commit is contained in:
parent
95a4e75423
commit
47e970635b
@ -20,7 +20,7 @@
|
|||||||
#ifdef DEBUG_ASSERT_VERBOSE
|
#ifdef DEBUG_ASSERT_VERBOSE
|
||||||
NORETURN void _assert_failure(const char *file, unsigned line)
|
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); \
|
core_panic(PANIC_ASSERT_FAIL, assert_crash_message); \
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user