summaryrefslogtreecommitdiffstats
path: root/tapset/logging.stp
diff options
context:
space:
mode:
authorhunt <hunt>2006-04-17 19:18:56 +0000
committerhunt <hunt>2006-04-17 19:18:56 +0000
commit0b5e63eb3779b41d122bbdd6a45a639aececd72b (patch)
tree6fd2c8b7712d5a96b11c2c16e878323181351e36 /tapset/logging.stp
parent9122cd3e12ae04b74569efc511d2d972d6d6e482 (diff)
downloadsystemtap-steved-0b5e63eb3779b41d122bbdd6a45a639aececd72b.tar.gz
systemtap-steved-0b5e63eb3779b41d122bbdd6a45a639aececd72b.tar.xz
systemtap-steved-0b5e63eb3779b41d122bbdd6a45a639aececd72b.zip
2006-04-17 Martin Hunt <hunt@redhat.com>
* endian.stp (set_endian): New function.
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) %{