diff options
author | Alan Modra <amodra@gmail.com> | 2000-04-07 04:34:50 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2000-04-07 04:34:50 +0000 |
commit | 37cc8ec1be0959c1878e79fd2baed888da4a2775 (patch) | |
tree | 3f0c84ec0246e8da024b05540c58b082c583dd31 /binutils/nm.c | |
parent | d311cd50fc8c3fc9b344cc2a893572d6c0ae44d7 (diff) | |
download | gdb-37cc8ec1be0959c1878e79fd2baed888da4a2775.zip gdb-37cc8ec1be0959c1878e79fd2baed888da4a2775.tar.gz gdb-37cc8ec1be0959c1878e79fd2baed888da4a2775.tar.bz2 |
A mostly cosmetic tidy up of warnings and error message reporting.
Diffstat (limited to 'binutils/nm.c')
-rw-r--r-- | binutils/nm.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/binutils/nm.c b/binutils/nm.c index bfe2158..2ee4873 100644 --- a/binutils/nm.c +++ b/binutils/nm.c @@ -1,5 +1,5 @@ /* nm.c -- Describe symbol table of a rel file. - Copyright 1991, 92, 93, 94, 95, 96, 97, 98, 1999 + Copyright 1991, 92, 93, 94, 95, 96, 97, 98, 99, 2000 Free Software Foundation, Inc. This file is part of GNU Binutils. @@ -336,8 +336,7 @@ set_print_radix (radix) other_format[3] = desc_format[3] = *radix; break; default: - fprintf (stderr, _("%s: %s: invalid radix\n"), program_name, radix); - exit (1); + fatal (_("%s: invalid radix"), radix); } } @@ -362,8 +361,7 @@ set_output_format (f) i = FORMAT_SYSV; break; default: - fprintf (stderr, _("%s: %s: invalid output format\n"), program_name, f); - exit (1); + fatal (_("%s: invalid output format"), f); } format = &formats[i]; } @@ -489,8 +487,7 @@ main (argc, argv) { char *lim = (char *) sbrk (0); - fprintf (stderr, _("%s: data size %ld\n"), program_name, - (long) (lim - (char *) &environ)); + non_fatal (_("data size %ld"), (long) (lim - (char *) &environ)); } #endif @@ -901,7 +898,7 @@ display_rel_file (abfd, archive_bfd) { if (!(bfd_get_file_flags (abfd) & HAS_SYMS)) { - fprintf (stderr, _("%s: no symbols\n"), bfd_get_filename (abfd)); + non_fatal (_("%s: no symbols"), bfd_get_filename (abfd)); return; } } @@ -912,7 +909,7 @@ display_rel_file (abfd, archive_bfd) if (symcount == 0) { - fprintf (stderr, _("%s: no symbols\n"), bfd_get_filename (abfd)); + non_fatal (_("%s: no symbols"), bfd_get_filename (abfd)); return; } |