]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
kldxref: Clean up error reporting
authorEd Maste <emaste@FreeBSD.org>
Wed, 30 Apr 2014 18:11:53 +0000 (18:11 +0000)
committerEd Maste <emaste@FreeBSD.org>
Wed, 30 Apr 2014 18:11:53 +0000 (18:11 +0000)
commit2bd7b9e5cc98da40bbd8e07aaa1000e3bc651753
tree4433a99e99c718907ad4e12ca86e4d6682ecd40b
parent9f06808398b521c10644782998050854aa301c29
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
usr.sbin/kldxref/ef.c