Skip to content

Commit

Permalink
The sed debug showed incorrect syntax for deletions, and the program …
Browse files Browse the repository at this point in the history
…exec

debug missed output redirection.

Signed-off-by: Mike Frysinger <[email protected]>
  • Loading branch information
David McCullough committed May 11, 2010
1 parent 93d68ca commit 8a81e3b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ld-elf2flt.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ execute(const char *command, const char *output, const options_t *options, ...)
fprintf(stderr, "Invoking:");
for (ix = 0; ix != opts.num - 1; ix++)
fprintf(stderr, " '%s'", opts.options[ix]);
if (output)
fprintf(stderr, " > '%s'", output);
fprintf(stderr, "\n");
}

Expand Down Expand Up @@ -173,7 +175,7 @@ do_sed(const sed_commands_t *sed, const char *name_in, const char *name_out)
if (replacement)
fprintf(stderr, "\t-e 's/%s/%s/' \\\n", pattern, replacement);
else
fprintf(stderr, "\t-e 'd/%s/' \\\n", pattern);
fprintf(stderr, "\t-e '/%s/d' \\\n", pattern);
}
fprintf(stderr, "\t%s > %s\n", name_in, name_out);
}
Expand Down

0 comments on commit 8a81e3b

Please sign in to comment.