]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r265157: kldxref: Clean up error reporting
authoremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 23 Jul 2014 14:30:58 +0000 (14:30 +0000)
committeremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 23 Jul 2014 14:30:58 +0000 (14:30 +0000)
commit01298e1b56a497a3338e090b1dffd8e0d361c480
tree56cbc2d6e52a0abc22437d1f292fbebf39484ad7
parentbc8a70a96fdb05cfb301b54574ef71f4efec6e91
MFC r265157: kldxref: Clean up error reporting

  Omit "too many sections" warnings if the ELF file is not dynamically
  linked (and is therefore skipped anyway), and otherwise output it only
  once.  An errant core file would previously cause kldxref to output a
  number of warnings.

  Also introduce a MAXSEGS #define and replace literal 2 with it, to make
  comparisons clear.

Reviewed by: kib
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@269014 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/kldxref/ef.c