blob: 5db8ed2e05cab51535b01fbec7445255ae06f995 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* Copyright 2016 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.
*
* Standalone utility to parse EC panicinfo.
*/
#include <stdint.h>
#include <stdio.h>
#include "ec_panicinfo.h"
int main(int argc, char *argv[])
{
struct panic_data pdata;
if (fread(&pdata, sizeof(pdata), 1, stdin) != 1) {
fprintf(stderr, "Error reading panicinfo from stdin.\n");
return 1;
}
return parse_panic_info(&pdata) ? 1 : 0;
}
|