Merge pull request #1031 from robertovargas-arm/assert_format

Use standard UNIX file:line format in assert
This commit is contained in:
davidcunado-arm 2017-07-26 12:31:18 +01:00 committed by GitHub
commit 881cf37438
1 changed files with 2 additions and 2 deletions

View File

@ -17,14 +17,14 @@
#if PLAT_LOG_LEVEL_ASSERT >= LOG_LEVEL_VERBOSE
void __assert(const char *file, unsigned int line, const char *assertion)
{
tf_printf("ASSERT: %s <%d> : %s\n", file, line, assertion);
tf_printf("ASSERT: %s:%d:%s\n", file, line, assertion);
console_flush();
plat_panic_handler();
}
#elif PLAT_LOG_LEVEL_ASSERT >= LOG_LEVEL_INFO
void __assert(const char *file, unsigned int line)
{
tf_printf("ASSERT: %s <%d>\n", file, line);
tf_printf("ASSERT: %s:%d\n", file, line);
console_flush();
plat_panic_handler();
}