ref: bb96b17c2324d66d287c0e65ccddc805e91ed68f
parent: 7bba9eb77e7f3fb5c47ee9457252dede76563d45
author: Quentin Rameau <[email protected]>
date: Thu Jun 2 16:59:13 EDT 2016
[driver] fix some error messages
--- a/driver/posix/scc.c
+++ b/driver/posix/scc.c
@@ -128,7 +128,7 @@
n = snprintf(new, newsz, "%.*s.%s", nameln, name, ext);
if (n < 0 || n >= newsz)
- die("wrong output filename");
+ die("scc: wrong output filename");
return new;
}
@@ -197,7 +197,7 @@
if (tool->in)
dup2(tool->in, 0);
execvp(tool->cmd, tool->args);
- fprintf(stderr, "scc: execv %s: %s\n",
+ fprintf(stderr, "scc: execp %s: %s\n",
tool->cmd, strerror(errno));
_exit(1);
default:
@@ -286,7 +286,7 @@
static void
usage(void)
{
- die("usage: %s [-E|-kS] [-m arch] [-D macro=val]... "
+ die("usage: %s [-E|-kS] [-m arch] [-D macro[=val]]... "
"[-I dir]... file ...", argv0);
}
@@ -331,7 +331,7 @@
usage();
if (!argc)
- die("scc: fatal error: no input files");
+ die("scc: fatal error: no input file");
for (; *argv; ++argv)
build(*argv);