summaryrefslogtreecommitdiffstats
path: root/elaborate.cxx
diff options
context:
space:
mode:
authorMark Wielaard <mwielaard@redhat.com>2008-06-11 18:30:57 +0200
committerMark Wielaard <mwielaard@redhat.com>2008-06-11 18:30:57 +0200
commit005b8a330592b0a4a9bfc2b46c222e8bf1c18753 (patch)
treeba4e63c559ecb9f327c1005d96c6d1a0ce955a3a /elaborate.cxx
parent20fb5020388d8ef57777f5e75a2430f2ee15cac3 (diff)
downloadsystemtap-steved-005b8a330592b0a4a9bfc2b46c222e8bf1c18753.tar.gz
systemtap-steved-005b8a330592b0a4a9bfc2b46c222e8bf1c18753.tar.xz
systemtap-steved-005b8a330592b0a4a9bfc2b46c222e8bf1c18753.zip
Micro-optimize print_warning output. Fix warnings.exp line count.
Diffstat (limited to 'elaborate.cxx')
-rw-r--r--elaborate.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/elaborate.cxx b/elaborate.cxx
index eb68a52a..d0665c90 100644
--- a/elaborate.cxx
+++ b/elaborate.cxx
@@ -1231,12 +1231,11 @@ systemtap_session::print_error (const semantic_error& e)
void
systemtap_session::print_warning (string message_str)
{
- message_str.insert(0, "WARNING: ");
// Duplicate elimination
if (seen_warnings.find (message_str) == seen_warnings.end())
{
seen_warnings.insert (message_str);
- clog << message_str << endl;
+ clog << "WARNING: " << message_str << endl;
}
}