From 47e970635b2acf406e43bae84c5c279f0722c3cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Nohlg=C3=A5rd?= Date: Thu, 16 Feb 2017 17:10:57 +0100 Subject: [PATCH] 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'. --- core/assert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/assert.c b/core/assert.c index 35c9d5359ec0..873634467d85 100644 --- a/core/assert.c +++ b/core/assert.c @@ -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