Files
OpenCellular/core/host/panic.c
Vic Yang 74abf36971 Test sysjump tag in kb_8042 test
This checks that keyboard state is preserved across system jump.

BUG=chrome-os-partner:19236
TEST=Pass the test
BRANCH=None

Change-Id: I53c5bb68246fd117b351d89c3907daf028bc4ef3
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/62908
Reviewed-by: Randall Spangler <rspangler@chromium.org>
2013-07-23 16:06:22 -07:00

25 lines
547 B
C

/* 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"
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);
}