From 152d6935cc4db354c067df5ec16d6a7da3113477 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Thu, 12 Feb 2009 15:51:35 +0100 Subject: Use "\n" instead of endl in inner loops. --- ChangeLog | 5 +++++ translate.cxx | 4 ++-- 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 + + * translate.cxx (dump_unwindsyms): Use "\n" instead of endl in + inner loops. + 2009-02-11 Dave Brolley * 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; -- cgit