diff options
author | johnlev <none@none> | 2006-05-09 04:32:25 -0700 |
---|---|---|
committer | johnlev <none@none> | 2006-05-09 04:32:25 -0700 |
commit | c168da277d64ace98b478c694fd808f783ce7d2e (patch) | |
tree | b19514d130bf1dfbb2ead3000c1e32cc32f260be /usr/src/tools/ctf/cvt/input.c | |
parent | 20e0c306d13b54840b7f8b12a43090fcb2bdbc04 (diff) | |
download | illumos-joyent-c168da277d64ace98b478c694fd808f783ce7d2e.tar.gz |
6418593 ctfmerge error messages need improvement
Diffstat (limited to 'usr/src/tools/ctf/cvt/input.c')
-rw-r--r-- | usr/src/tools/ctf/cvt/input.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/tools/ctf/cvt/input.c b/usr/src/tools/ctf/cvt/input.c index 664a7ba8f8..d901e5340b 100644 --- a/usr/src/tools/ctf/cvt/input.c +++ b/usr/src/tools/ctf/cvt/input.c @@ -92,7 +92,7 @@ read_file(Elf *elf, char *file, char *label, read_cb_f *func, void *arg, int ctfscnidx; tdata_t *td; - if ((ctfscnidx = findelfsecidx(elf, ".SUNW_ctf")) < 0) { + if ((ctfscnidx = findelfsecidx(elf, file, ".SUNW_ctf")) < 0) { if (require_ctf && (built_source_types(elf, file) & SOURCE_C)) { terminate("Input file %s was partially built from " @@ -294,7 +294,7 @@ count_files(char **files, int n) if ((elf = elf_begin(fd, ELF_C_READ, NULL)) == NULL) { warning("Can't open input file %s: %s\n", file, - elf_errmsg(elf_errno())); + elf_errmsg(-1)); err++; (void) close(fd); continue; @@ -345,7 +345,7 @@ symit_new(Elf *elf, const char *file) Elf_Scn *scn; int symtabidx; - if ((symtabidx = findelfsecidx(elf, ".symtab")) < 0) + if ((symtabidx = findelfsecidx(elf, file, ".symtab")) < 0) return (NULL); si = xcalloc(sizeof (symit_data_t)); |