abipkgdiff --verbose shouldn't trigger --fail-no-dbg

--verbose was triggering --fail-no-dbg.  This patch fixes that.

	* tools/abipkgdiff.cc (compare): In the overload for elf_files,
	separate the effect of --verbose from the one of --fail-no-dbg.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
Dodji Seketeli 2018-01-12 13:04:49 +01:00
parent 6909dcb43c
commit 9c86797fec

View File

@ -1266,7 +1266,7 @@ compare(const elf_file& elf1,
bail_out = true;
}
if (opts.fail_if_no_debug_info || opts.verbose)
if (opts.fail_if_no_debug_info)
{
bool debug_info_error = false;
if (c1_status & abigail::dwarf_reader::STATUS_DEBUG_INFO_NOT_FOUND)
@ -1352,7 +1352,7 @@ compare(const elf_file& elf1,
bail_out = true;
}
if (opts.fail_if_no_debug_info || opts.verbose)
if (opts.fail_if_no_debug_info)
{
bool debug_info_error = false;
if (c2_status & abigail::dwarf_reader::STATUS_DEBUG_INFO_NOT_FOUND)