Ambroise Vincent | 4128f9f | 2019-02-11 13:34:41 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #include <assert.h> |
| 8 | #include <cdefs.h> |
| 9 | #include <stdio.h> |
| 10 | |
| 11 | #include <common/debug.h> |
Ambroise Vincent | 4128f9f | 2019-02-11 13:34:41 +0000 | [diff] [blame] | 12 | |
Ambroise Vincent | 4128f9f | 2019-02-11 13:34:41 +0000 | [diff] [blame] | 13 | void __assert(const char *file, unsigned int line, const char *assertion) |
| 14 | { |
| 15 | printf("ASSERT: %s:%d:%s\n", file, line, assertion); |
Ambroise Vincent | 8a573de | 2019-02-11 13:54:30 +0000 | [diff] [blame^] | 16 | panic(); |
Ambroise Vincent | 4128f9f | 2019-02-11 13:34:41 +0000 | [diff] [blame] | 17 | } |