diff options
Diffstat (limited to 'chip/host/system.c')
-rw-r--r-- | chip/host/system.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/chip/host/system.c b/chip/host/system.c index bf63af8bf0..4a480faf77 100644 --- a/chip/host/system.c +++ b/chip/host/system.c @@ -1,10 +1,11 @@ -/* Copyright 2013 The Chromium OS Authors. All rights reserved. +/* Copyright 2013 The ChromiumOS Authors * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* System module for emulator */ +#include "builtin/assert.h" #include "common.h" #include "ec_commands.h" #include "host_test.h" @@ -44,8 +45,7 @@ static void ramdata_get_persistent(void) FILE *f = get_persistent_storage("ramdata", "rb"); if ((f == NULL) || (fread(__ram_data, RAM_DATA_SIZE, 1, f) != 1)) { - fprintf(stderr, - "No RAM data found. Initializing to 0x00.\n"); + fprintf(stderr, "No RAM data found. Initializing to 0x00.\n"); memset(__ram_data, 0, RAM_DATA_SIZE); return; } @@ -129,14 +129,14 @@ static int load_time(timestamp_t *t) test_mockable struct panic_data *panic_get_data(void) { - return (struct panic_data *) - (__ram_data + RAM_DATA_SIZE - sizeof(struct panic_data)); + return (struct panic_data *)(__ram_data + RAM_DATA_SIZE - + sizeof(struct panic_data)); } test_mockable uintptr_t get_panic_data_start(void) { - return (uintptr_t) - (__ram_data + RAM_DATA_SIZE - sizeof(struct panic_data)); + return (uintptr_t)(__ram_data + RAM_DATA_SIZE - + sizeof(struct panic_data)); } test_mockable void system_reset(int flags) |