blob: e352a2dafab23ae4091efbfbd8042788b34565dd [file] [log] [blame]
George Liuff92ffe2021-02-09 15:01:53 +08001#include "config.h"
2
3#include "ramoops_manager.hpp"
4
George Liu858fbb22021-07-01 12:25:44 +08005#include <fmt/core.h>
6
George Liuff92ffe2021-02-09 15:01:53 +08007#include <phosphor-logging/elog-errors.hpp>
8
9int main()
10{
11 fs::path filePath(SYSTEMD_PSTORE_PATH);
12 if (!fs::exists(filePath))
13 {
George Liu858fbb22021-07-01 12:25:44 +080014 log<level::ERR>(
15 fmt::format("Pstore file path is not exists, FILE_PATH({})",
16 SYSTEMD_PSTORE_PATH)
17 .c_str());
George Liuff92ffe2021-02-09 15:01:53 +080018 return EXIT_FAILURE;
19 }
20
21 phosphor::dump::ramoops::Manager manager(SYSTEMD_PSTORE_PATH);
22
23 return EXIT_SUCCESS;
24}