George Liu | ff92ffe | 2021-02-09 15:01:53 +0800 | [diff] [blame^] | 1 | #include "config.h" |
2 | |||||
3 | #include "ramoops_manager.hpp" | ||||
4 | |||||
5 | #include <phosphor-logging/elog-errors.hpp> | ||||
6 | |||||
7 | int 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 | } |