Merge pull request #10122 from kjbracey-arm/mbed_error_warnings

mbed_error.c: fix warnings
pull/10081/head
Cruz Monrreal 2019-03-16 23:01:49 -05:00 committed by GitHub
commit e417ad2a3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -432,7 +432,7 @@ mbed_error_status_t mbed_clear_all_errors(void)
return status;
}
static const char *name_or_unnamed(const char *name)
static inline const char *name_or_unnamed(const char *name)
{
return name ? name : "<unnamed>";
}
@ -547,7 +547,7 @@ static void print_error_report(const mbed_error_ctx *ctx, const char *error_msg,
#else
mbed_stats_sys_t sys_stats;
mbed_stats_sys_get(&sys_stats);
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);
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);
#endif
mbed_error_printf("\n-- MbedOS Error Info --\n");
}