summaryrefslogtreecommitdiffstats
path: root/tapset/logging.stp
diff options
context:
space:
mode:
Diffstat (limited to 'tapset/logging.stp')
-rw-r--r--tapset/logging.stp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tapset/logging.stp b/tapset/logging.stp
index a3fcac04..659ef389 100644
--- a/tapset/logging.stp
+++ b/tapset/logging.stp
@@ -6,9 +6,10 @@
// Public License (GPL); either version 2, or (at your option) any
// later version.
-// send a string out with a newline
+// Write a message to the console (actually stderr). A newline is appended
+// if the string does not end in one.
function log (msg:string) %{
- _stp_printf ("%s\n", THIS->msg);
+ _stp_log (THIS->msg);
%}
function warn (msg:string) %{