blob: b73723018b474e4940439686260a1b5f39c4d22e [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>
Dhruvaraj Subhashchandrand1f670f2023-06-05 22:19:25 -05006#include <phosphor-logging/lg2.hpp>
George Liuff92ffe2021-02-09 15:01:53 +08007
8int main()
9{
10 fs::path filePath(SYSTEMD_PSTORE_PATH);
11 if (!fs::exists(filePath))
12 {
Dhruvaraj Subhashchandrand1f670f2023-06-05 22:19:25 -050013 lg2::error("Pstore file path is not exists, FILE_PATH: {FILE_PATH}",
14 "FILE_PATH", filePath);
George Liuff92ffe2021-02-09 15:01:53 +080015 return EXIT_FAILURE;
16 }
17
18 phosphor::dump::ramoops::Manager manager(SYSTEMD_PSTORE_PATH);
19
20 return EXIT_SUCCESS;
21}