Skip to content

Commit e417ad2

Browse files
author
Cruz Monrreal
authored
Merge pull request #10122 from kjbracey-arm/mbed_error_warnings
mbed_error.c: fix warnings
2 parents 2b7fee3 + d40347f commit e417ad2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

platform/mbed_error.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ mbed_error_status_t mbed_clear_all_errors(void)
432432
return status;
433433
}
434434

435-
static const char *name_or_unnamed(const char *name)
435+
static inline const char *name_or_unnamed(const char *name)
436436
{
437437
return name ? name : "<unnamed>";
438438
}
@@ -547,7 +547,7 @@ static void print_error_report(const mbed_error_ctx *ctx, const char *error_msg,
547547
#else
548548
mbed_stats_sys_t sys_stats;
549549
mbed_stats_sys_get(&sys_stats);
550-
mbed_error_printf("\nFor more info, visit: https://mbed.com/s/error?error=0x%08X&osver=%d&core=0x%08X&comp=%d&ver=%d&tgt=" GET_TARGET_NAME(TARGET_NAME), ctx->error_status, sys_stats.os_version, sys_stats.cpu_id, sys_stats.compiler_id, sys_stats.compiler_version);
550+
mbed_error_printf("\nFor more info, visit: https://mbed.com/s/error?error=0x%08X&osver=%" PRId32 "&core=0x%08" PRIX32 "&comp=%d&ver=%" PRIu32 "&tgt=" GET_TARGET_NAME(TARGET_NAME), ctx->error_status, sys_stats.os_version, sys_stats.cpu_id, sys_stats.compiler_id, sys_stats.compiler_version);
551551
#endif
552552
mbed_error_printf("\n-- MbedOS Error Info --\n");
553553
}

0 commit comments

Comments
 (0)