From cd40e709019f2ee44585032b155d0e52e3aaab4b Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Wed, 29 Aug 2007 14:41:21 +0200 Subject: [PATCH] improve output of list of existing traces --- src/core/trace-resolver.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/core/trace-resolver.cc b/src/core/trace-resolver.cc index 2feedd2b6..f2bd31ea3 100644 --- a/src/core/trace-resolver.cc +++ b/src/core/trace-resolver.cc @@ -104,19 +104,19 @@ TraceResolver::SourceCollection::Print (std::ostream &os) const i->context.PrintAvailable (os, ","); os << "]" << std::endl; os << "help=\"" << i->doc.GetHelp () << "\"" << std::endl; - os << "argument 0 -- the trace context associated to the connected trace source." << std::endl; - uint32_t k = 2; - for (TraceDoc::Iterator j = i->doc.ArgsBegin (); j != i->doc.ArgsEnd (); j++) - { - os << "argument " << k << " -- " << j->second << "." << std::endl; - k++; - } os << "void TraceSinkCallback (const TraceContext &"; for (TraceDoc::Iterator k = i->doc.ArgsBegin (); k != i->doc.ArgsEnd (); k++) { os << ", " << k->first; } os << ")" << std::endl; + os << "argument 1 -- the trace context associated to the connected trace source." << std::endl; + uint32_t k = 2; + for (TraceDoc::Iterator j = i->doc.ArgsBegin (); j != i->doc.ArgsEnd (); j++) + { + os << "argument " << k << " -- " << j->second << "." << std::endl; + k++; + } os << std::endl; } }