Skip to content
Snippets Groups Projects
Commit 116b4988 authored by Nadav Har'El's avatar Nadav Har'El Committed by Pekka Enberg
Browse files

loader.cc: make error messages visible


Since recently, debug() messages are by default not visible. This means
they are not a good way to print error messages :-)

This patch fixes two error messages from loader.cc, that were no longer
visible. For example, "scripts/run.py -e xyz" completed without any message
instead of telling the user that "xyz" doesn't exist.

Signed-off-by: default avatarNadav Har'El <nyh@cloudius-systems.com>
Signed-off-by: default avatarPekka Enberg <penberg@cloudius-systems.com>
parent 5d9e5e7c
No related branches found
No related tags found
No related merge requests found
......@@ -205,8 +205,7 @@ std::vector<std::vector<std::string> > prepare_commands(int ac, char** av)
commands = osv::parse_command_line(line, ok);
if (!ok) {
debug("Failed to parse commands line\n");
abort();
abort("Failed to parse commands line\n");
}
return commands;
......@@ -240,7 +239,7 @@ void run_main(std::vector<std::string> &vec)
}
return;
}
debug("run_main(): cannot execute %s. Powering off.\n", command.c_str());
printf("run_main(): cannot execute %s. Powering off.\n", command.c_str());
osv::poweroff();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment