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> |
Dhruvaraj Subhashchandran | d1f670f | 2023-06-05 22:19:25 -0500 | [diff] [blame] | 6 | #include <phosphor-logging/lg2.hpp> |
George Liu | ff92ffe | 2021-02-09 15:01:53 +0800 | [diff] [blame] | 7 | |
| 8 | int main() |
| 9 | { |
| 10 | fs::path filePath(SYSTEMD_PSTORE_PATH); |
| 11 | if (!fs::exists(filePath)) |
| 12 | { |
Dhruvaraj Subhashchandran | d1f670f | 2023-06-05 22:19:25 -0500 | [diff] [blame] | 13 | lg2::error("Pstore file path is not exists, FILE_PATH: {FILE_PATH}", |
| 14 | "FILE_PATH", filePath); |
George Liu | ff92ffe | 2021-02-09 15:01:53 +0800 | [diff] [blame] | 15 | return EXIT_FAILURE; |
| 16 | } |
| 17 | |
| 18 | phosphor::dump::ramoops::Manager manager(SYSTEMD_PSTORE_PATH); |
| 19 | |
| 20 | return EXIT_SUCCESS; |
| 21 | } |