From: Petr Machata Date: Wed, 23 Feb 2011 16:12:58 +0000 (+0100) Subject: Don't emit two error messages for invalid attribute form X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=31bf2445a311a748188d2760263e191da515a320;p=thirdparty%2Felfutils.git Don't emit two error messages for invalid attribute form - and add space to "complain" error message --- diff --git a/dwarflint/check_debug_abbrev.cc b/dwarflint/check_debug_abbrev.cc index d727328c5..8d413fc60 100644 --- a/dwarflint/check_debug_abbrev.cc +++ b/dwarflint/check_debug_abbrev.cc @@ -1,5 +1,5 @@ /* Pedantic checking of DWARF files - Copyright (C) 2009, 2010 Red Hat, Inc. + Copyright (C) 2009, 2010, 2011 Red Hat, Inc. This file is part of Red Hat elfutils. Red Hat elfutils is free software; you can redistribute it and/or modify @@ -117,7 +117,7 @@ namespace { wr_error (*where) << "attribute " << *attribute << " with " << qualifier - << (indirect ? " indirect" : "") << " form" + << (indirect ? " indirect" : "") << " form " << *form << '.' << std::endl; } @@ -405,9 +405,7 @@ namespace (ver, attrib_form, attribute, &where, false); if (form == NULL) { - wr_error (where) - << "invalid or unknown form " << pri::hex (attrib_form) - << '.' << std::endl; + // Error message is emitted in check_form. failed = true; continue; }