blob: ee815cb678278fd1f710654ab1939a8573933398 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include <stdio.h>
#include <stdlib.h>
#include "common.h"
#include "panic.h"
#include "util.h"
struct panic_data *panic_get_data(void)
{
return NULL;
}
void panic_assert_fail(const char *msg, const char *func, const char *fname,
int linenum)
{
fprintf(stderr, "ASSERTION FAIL: %s:%d:%s - %s\n",
fname, linenum, func, msg);
fflush(stderr);
puts("Fail!"); /* Inform test runner */
fflush(stdout);
exit(1);
}
|