Mention filename for some error messages
This commit is contained in:
parent
5092c4ece3
commit
40569c479e
|
@ -89,7 +89,7 @@ getfile(filename)
|
||||||
#ifdef SYMDBUG
|
#ifdef SYMDBUG
|
||||||
if (passnumber == FIRST || !incore) {
|
if (passnumber == FIRST || !incore) {
|
||||||
if (fstat(infile, &statbuf) < 0)
|
if (fstat(infile, &statbuf) < 0)
|
||||||
fatal("cannot stat");
|
fatal("cannot stat %s", filename);
|
||||||
objectsize = statbuf.st_size;
|
objectsize = statbuf.st_size;
|
||||||
}
|
}
|
||||||
#endif /* SYMDBUG */
|
#endif /* SYMDBUG */
|
||||||
|
@ -102,14 +102,14 @@ getfile(filename)
|
||||||
if (passnumber == FIRST) {
|
if (passnumber == FIRST) {
|
||||||
rd_arhdr(infile, &archive_header);
|
rd_arhdr(infile, &archive_header);
|
||||||
if (strcmp(archive_header.ar_name, SYMDEF))
|
if (strcmp(archive_header.ar_name, SYMDEF))
|
||||||
fatal("no table of contents");
|
fatal("%s: no table of contents", filename);
|
||||||
} else if (incore) {
|
} else if (incore) {
|
||||||
modulbase += sizeof(int);
|
modulbase += sizeof(int);
|
||||||
core_position += sizeof(int);
|
core_position += sizeof(int);
|
||||||
}
|
}
|
||||||
return ARCHIVE;
|
return ARCHIVE;
|
||||||
default:
|
default:
|
||||||
fatal("wrong magic number");
|
fatal("%s: wrong magic number", filename);
|
||||||
}
|
}
|
||||||
/* NOTREACHED */
|
/* NOTREACHED */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue