diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2008-06-11 11:55:00 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2008-06-11 11:55:00 -0400 |
commit | ee4487077c84562f5a4ce045a554688ca88ccfd1 (patch) | |
tree | 56daf4726e0e9a9d58099aeacaf5ad49e08beacb | |
parent | 8f5a3d9e3c6985f655495d133c8a2989ce91fd4d (diff) | |
download | systemtap-steved-ee4487077c84562f5a4ce045a554688ca88ccfd1.tar.gz systemtap-steved-ee4487077c84562f5a4ce045a554688ca88ccfd1.tar.xz systemtap-steved-ee4487077c84562f5a4ce045a554688ca88ccfd1.zip |
duplicate warning thinko fox
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | elaborate.cxx | 4 |
2 files changed, 6 insertions, 2 deletions
@@ -1,3 +1,7 @@ +2008-06-11 Frank Ch. Eigler <fche@elastic.org> + + * elaborate.cxx (print_warning): Use session.seen_warnings[]. + 2008-06-10 Stan Cox <scox@redhat.com> * elaborate.cxx (print_warning): New. diff --git a/elaborate.cxx b/elaborate.cxx index dd01eaae..0d110faa 100644 --- a/elaborate.cxx +++ b/elaborate.cxx @@ -1233,9 +1233,9 @@ systemtap_session::print_warning (string message_str) { message_str.insert(0, "WARNING: "); // Duplicate elimination - if (seen_errors.find (message_str) == seen_errors.end()) + if (seen_warnings.find (message_str) == seen_errors.end()) { - seen_errors.insert (message_str); + seen_warnings.insert (message_str); clog << message_str << endl; } } |