[hackers] [scc] [driver] fix some error messages || Quentin Rameau
commit f2c9df35f9ea835d4231ee5759d46466aecc3e60
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Thu Jun 2 20:59:13 2016 +0200
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Thu Jun 2 20:59:13 2016 +0200
[driver] fix some error messages
diff --git a/driver/posix/scc.c b/driver/posix/scc.c
index 31a56f1..a2ee1a4 100644
--- a/driver/posix/scc.c
+++ b/driver/posix/scc.c
_AT_@ -128,7 +128,7 @@ newfileext(char *name, char *ext)
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;
}
_AT_@ -197,7 +197,7 @@ spawn(int t)
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:
_AT_@ -286,7 +286,7 @@ addarg(int tool, char *arg) {
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);
}
_AT_@ -331,7 +331,7 @@ main(int argc, char *argv[])
usage();
if (!argc)
- die("scc: fatal error: no input files");
+ die("scc: fatal error: no input file");
for (; *argv; ++argv)
build(*argv);
Received on Thu Jun 02 2016 - 20:59:32 CEST
This archive was generated by hypermail 2.3.0
: Thu Jun 02 2016 - 21:00:19 CEST