blob: 6a063860c8eb41a6de6ac87d24e7e1427f0d543e [file] [log] [blame]
George Liuff92ffe2021-02-09 15:01:53 +08001#include "config.h"
2
3#include "ramoops_manager.hpp"
4
5#include <phosphor-logging/elog-errors.hpp>
6
7int main()
8{
9 fs::path filePath(SYSTEMD_PSTORE_PATH);
10 if (!fs::exists(filePath))
11 {
12 log<level::ERR>("Pstore file path is not exists",
13 entry("FILE_PATH = %s", SYSTEMD_PSTORE_PATH));
14 return EXIT_FAILURE;
15 }
16
17 phosphor::dump::ramoops::Manager manager(SYSTEMD_PSTORE_PATH);
18
19 return EXIT_SUCCESS;
20}