Skip to content

Commit

Permalink
loader: print boot command line and expanded runscript line if applic…
Browse files Browse the repository at this point in the history
…able

Very often it is not clear what the resolved boot command line
for a built image might be. It makes a big difference to see
the command line for troubleshooting reasons especially for new users.

This patch addresses this shortcoming.

Signed-off-by: Waldemar Kozaczuk <[email protected]>
  • Loading branch information
wkozaczuk committed Sep 11, 2019
1 parent 8dbf5fe commit dfc8949
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/commands.cc
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ runscript_expand(const std::vector<std::string>& cmd, bool &ok, bool &is_runscri
getline(in, line);
bool ok2;
result3 = parse_command_line_min(line, ok2);
debug("runscript expand fn='%s' line=%d '%s'\n", fn.c_str(), line_num, line.c_str());
printf("runscript expand fn='%s' line=%d '%s'\n", fn.c_str(), line_num, line.c_str());
if (ok2 == false) {
printf("Failed expanding runscript file='%s' line=%d '%s'.\n", fn.c_str(), line_num, line.c_str());
result2.clear();
Expand Down
1 change: 1 addition & 0 deletions loader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ std::vector<std::vector<std::string> > prepare_commands(char* app_cmdline)
std::vector<std::vector<std::string> > commands;
bool ok;

printf("Cmdline: %s\n", app_cmdline);
commands = osv::parse_command_line(app_cmdline, ok);

if (!ok) {
Expand Down

0 comments on commit dfc8949

Please sign in to comment.