diff options
Diffstat (limited to 'init/init_parser.cpp')
-rw-r--r-- | init/init_parser.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/init/init_parser.cpp b/init/init_parser.cpp index b44ca59d5..9ec26afb5 100644 --- a/init/init_parser.cpp +++ b/init/init_parser.cpp @@ -93,7 +93,7 @@ void Parser::ParseData(const std::string& filename, const std::string& data) { } bool Parser::ParseConfigFile(const std::string& path) { - INFO("Parsing file %s...\n", path.c_str()); + LOG(INFO) << "Parsing file " << path << "..."; Timer t; std::string data; if (!read_file(path.c_str(), &data)) { @@ -110,15 +110,15 @@ bool Parser::ParseConfigFile(const std::string& path) { // Nexus 9 boot time, so it's disabled by default. if (false) DumpState(); - NOTICE("(Parsing %s took %.2fs.)\n", path.c_str(), t.duration()); + LOG(VERBOSE) << "(Parsing " << path << " took " << t.duration() << "s.)"; return true; } bool Parser::ParseConfigDir(const std::string& path) { - INFO("Parsing directory %s...\n", path.c_str()); + LOG(INFO) << "Parsing directory " << path << "..."; std::unique_ptr<DIR, int(*)(DIR*)> config_dir(opendir(path.c_str()), closedir); if (!config_dir) { - ERROR("Could not import directory '%s'\n", path.c_str()); + PLOG(ERROR) << "Could not import directory '" << path << "'"; return false; } dirent* current_file; @@ -128,7 +128,7 @@ bool Parser::ParseConfigDir(const std::string& path) { // Ignore directories and only process regular files. if (current_file->d_type == DT_REG) { if (!ParseConfigFile(current_path)) { - ERROR("could not import file '%s'\n", current_path.c_str()); + LOG(ERROR) << "could not import file '" << current_path << "'"; } } } |