summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--translate.cxx4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 6a609a62..8842c897 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-02-12 Mark Wielaard <mjw@redhat.com>
+
+ * translate.cxx (dump_unwindsyms): Use "\n" instead of endl in
+ inner loops.
+
2009-02-11 Dave Brolley <brolley@redhat.com>
* stap-client: s/jar/zip/.
diff --git a/translate.cxx b/translate.cxx
index 0d430ea3..a3b65c86 100644
--- a/translate.cxx
+++ b/translate.cxx
@@ -4596,7 +4596,7 @@ dump_unwindsyms (Dwfl_Module *m,
int h = ((uint8_t *)unwind)[i];
c->output << "0x" << hex << h << dec << ",";
if ((i + 1) % 16 == 0)
- c->output << endl << " ";
+ c->output << "\n" << " ";
}
c->output << "};" << endl;
c->output << "#endif /* STP_USE_DWARF_UNWINDER && STP_NEED_UNWIND_DATA */" << endl;
@@ -4627,7 +4627,7 @@ dump_unwindsyms (Dwfl_Module *m,
continue; // skip symbols that occur before our chosen base address
c->output << " { 0x" << hex << it->first-extra_offset << dec
- << ", " << lex_cast_qstring (it->second) << " }," << endl;
+ << ", " << lex_cast_qstring (it->second) << " }," << "\n";
}
c->output << "#endif /* STP_NEED_SYMBOL_DATA */" << endl;