From 40569c479e161d1c66d85556b863429296b0913e Mon Sep 17 00:00:00 2001 From: ceriel Date: Tue, 8 Jun 1993 13:02:01 +0000 Subject: [PATCH] Mention filename for some error messages --- util/led/scan.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/util/led/scan.c b/util/led/scan.c index ebe26173b..6523a5f76 100644 --- a/util/led/scan.c +++ b/util/led/scan.c @@ -89,7 +89,7 @@ getfile(filename) #ifdef SYMDBUG if (passnumber == FIRST || !incore) { if (fstat(infile, &statbuf) < 0) - fatal("cannot stat"); + fatal("cannot stat %s", filename); objectsize = statbuf.st_size; } #endif /* SYMDBUG */ @@ -102,14 +102,14 @@ getfile(filename) if (passnumber == FIRST) { rd_arhdr(infile, &archive_header); if (strcmp(archive_header.ar_name, SYMDEF)) - fatal("no table of contents"); + fatal("%s: no table of contents", filename); } else if (incore) { modulbase += sizeof(int); core_position += sizeof(int); } return ARCHIVE; default: - fatal("wrong magic number"); + fatal("%s: wrong magic number", filename); } /* NOTREACHED */ } -- 2.34.1