1 #include "config.h" 2 3 #include "ramoops_manager.hpp" 4 5 #include <phosphor-logging/elog-errors.hpp> 6 #include <phosphor-logging/lg2.hpp> 7 8 int main() 9 { 10 fs::path filePath(SYSTEMD_PSTORE_PATH); 11 if (!fs::exists(filePath)) 12 { 13 lg2::error("Pstore file path is not exists, FILE_PATH: {FILE_PATH}", 14 "FILE_PATH", filePath); 15 return EXIT_FAILURE; 16 } 17 18 phosphor::dump::ramoops::Manager manager(SYSTEMD_PSTORE_PATH); 19 20 return EXIT_SUCCESS; 21 } 22