mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-21 20:14:29 +00:00

To make software license auditing simpler, use SPDX[0] license identifiers instead of duplicating the license text in every file. NOTE: Files that have been imported by FreeBSD have not been modified. [0]: https://spdx.org/ Change-Id: I80a00e1f641b8cc075ca5a95b10607ed9ed8761a Signed-off-by: dp-arm <dimitris.papastamos@arm.com>
25 lines
585 B
C
25 lines
585 B
C
/*
|
|
* Copyright (c) 2013-2017, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#include <console.h>
|
|
#include <debug.h>
|
|
#include <platform.h>
|
|
|
|
void __assert(const char *function, const char *file, unsigned int line,
|
|
const char *assertion)
|
|
{
|
|
#if LOG_LEVEL >= LOG_LEVEL_INFO
|
|
/*
|
|
* Only print the output if LOG_LEVEL is higher or equal to
|
|
* LOG_LEVEL_INFO, which is the default value for builds with DEBUG=1.
|
|
*/
|
|
tf_printf("ASSERT: %s <%d> : %s\n", function, line, assertion);
|
|
|
|
console_flush();
|
|
#endif
|
|
|
|
plat_panic_handler();
|
|
}
|