blob: dbf8507d0e53a98637b2a34764713791141bbba5 [file] [log] [blame]
Ambroise Vincent4128f9f2019-02-11 13:34:41 +00001/*
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 Vincent4128f9f2019-02-11 13:34:41 +000012
Ambroise Vincent4128f9f2019-02-11 13:34:41 +000013void __assert(const char *file, unsigned int line, const char *assertion)
14{
15 printf("ASSERT: %s:%d:%s\n", file, line, assertion);
Ambroise Vincent8a573de2019-02-11 13:54:30 +000016 panic();
Ambroise Vincent4128f9f2019-02-11 13:34:41 +000017}