summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--translate.cxx2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index afbb1b74..61444b34 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-08-09 Frank Ch. Eigler <fche@elastic.org>
+
+ From Lai Jiangshan <laijs@cn.fujitsu.com>:
+ * translate.cxx (emit_module_exit): Use stp_warn for warning.
+
2007-08-07 Frank Ch. Eigler <fche@redhat.com>
PR 4846
diff --git a/translate.cxx b/translate.cxx
index e799c42a..e6bd4e12 100644
--- a/translate.cxx
+++ b/translate.cxx
@@ -1306,7 +1306,7 @@ c_unparser::emit_module_exit ()
// print final error/reentrancy counts if non-zero
o->newline() << "if (atomic_read (& skipped_count) || "
<< "atomic_read (& error_count)) {";
- o->newline(1) << "_stp_printf (\"WARNING: Number of errors: %d, "
+ o->newline(1) << "_stp_warn (\"Number of errors: %d, "
<< "skipped probes: %d\\n\", "
<< "(int) atomic_read (& error_count), "
<< "(int) atomic_read (& skipped_count));";