summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Machata <[email protected]>2011-02-23 17:12:58 +0100
committerPetr Machata <[email protected]>2011-02-23 17:12:58 +0100
commit31bf2445a311a748188d2760263e191da515a320 (patch)
tree7e767b7e3dfb3b6365ecea80354c8fb8efbb4317
parented4c609913cb2709f1b8c350dedccb7154f1cbde (diff)
Don't emit two error messages for invalid attribute form
- and add space to "complain" error message
-rw-r--r--dwarflint/check_debug_abbrev.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/dwarflint/check_debug_abbrev.cc b/dwarflint/check_debug_abbrev.cc
index d727328c..8d413fc6 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;
}