blob: 4b53d1e0eb93de60e0fb25ea72fd6db555b0fb61 [file] [log] [blame]
Sandrine Bailleux3cd87d72018-10-09 11:12:55 +02001/*
2 * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Sandrine Bailleux971545c2019-01-18 13:30:29 +01007#include <stdio.h>
Sandrine Bailleux3cd87d72018-10-09 11:12:55 +02008
9/*
10 * This is a basic implementation. This could be improved.
11 */
12void __assert (const char *function, const char *file, unsigned int line,
13 const char *assertion)
14{
Sandrine Bailleux971545c2019-01-18 13:30:29 +010015 printf("ASSERT: %s <%d> : %s\n", function, line, assertion);
16
17 while (1)
18 ;
Sandrine Bailleux3cd87d72018-10-09 11:12:55 +020019}