Sandrine Bailleux | 3cd87d7 | 2018-10-09 11:12:55 +0200 | [diff] [blame^] | 1 | /* |
2 | * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. | ||||
3 | * | ||||
4 | * SPDX-License-Identifier: BSD-3-Clause | ||||
5 | */ | ||||
6 | |||||
7 | #include <debug.h> | ||||
8 | |||||
9 | /* | ||||
10 | * This is a basic implementation. This could be improved. | ||||
11 | */ | ||||
12 | void __assert (const char *function, const char *file, unsigned int line, | ||||
13 | const char *assertion) | ||||
14 | { | ||||
15 | mp_printf("ASSERT: %s <%d> : %s\n", function, line, assertion); | ||||
16 | while (1); | ||||
17 | } |