diff options
author | Mark Wielaard <mwielaard@redhat.com> | 2008-06-11 18:30:57 +0200 |
---|---|---|
committer | Mark Wielaard <mwielaard@redhat.com> | 2008-06-11 18:30:57 +0200 |
commit | 005b8a330592b0a4a9bfc2b46c222e8bf1c18753 (patch) | |
tree | ba4e63c559ecb9f327c1005d96c6d1a0ce955a3a /elaborate.cxx | |
parent | 20fb5020388d8ef57777f5e75a2430f2ee15cac3 (diff) | |
download | systemtap-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.cxx | 3 |
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; } } |