]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Don't emit two error messages for invalid attribute form
authorPetr Machata <pmachata@redhat.com>
Wed, 23 Feb 2011 16:12:58 +0000 (17:12 +0100)
committerPetr Machata <pmachata@redhat.com>
Wed, 23 Feb 2011 16:12:58 +0000 (17:12 +0100)
- and add space to "complain" error message

dwarflint/check_debug_abbrev.cc

index d727328c58bd6c1769f5d9ae4cd783ac12e5817f..8d413fc6040a55590e8fbcd58f157d7e9b8c1972 100644 (file)
@@ -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;
              }