summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-02-12 15:51:35 +0100
committerMark Wielaard <mjw@redhat.com>2009-02-12 15:59:43 +0100
commit152d6935cc4db354c067df5ec16d6a7da3113477 (patch)
tree3b6c9c4fc50658c087f4760debea73e46fdccd68
parent275a898f43b2e6f7a55112fce91cbeb8a32f99ac (diff)
downloadsystemtap-steved-152d6935cc4db354c067df5ec16d6a7da3113477.tar.gz
systemtap-steved-152d6935cc4db354c067df5ec16d6a7da3113477.tar.xz
systemtap-steved-152d6935cc4db354c067df5ec16d6a7da3113477.zip
Use "\n" instead of endl in inner loops.
-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;