]> git.wh0rd.org Git - elf2flt.git/commitdiff
The sed debug showed incorrect syntax for deletions, and the program exec
authorDavid McCullough <davidm@snapgear.com>
Tue, 11 May 2010 12:27:11 +0000 (12:27 +0000)
committerDavid McCullough <davidm@snapgear.com>
Tue, 11 May 2010 12:27:11 +0000 (12:27 +0000)
debug missed output redirection.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
ld-elf2flt.c

index 227c90b1b96f8bd1f076a631338bb8ff5c9260bc..707e9e10fef4c195e294ebe99c4f828f3b87c4b4 100644 (file)
@@ -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");
        }
 
@@ -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);
        }