diff options
Diffstat (limited to 'tapset/logging.stp')
-rw-r--r-- | tapset/logging.stp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tapset/logging.stp b/tapset/logging.stp index eff7b555..e276aa3f 100644 --- a/tapset/logging.stp +++ b/tapset/logging.stp @@ -4,10 +4,10 @@ function print (msg:string) %{ _stp_print (THIS->msg); %} -// almost the same as print -function log (msg) { - print (msg . "\n") -} +// like print but with a newline +function log (msg:string) %{ + _stp_printf ("%s\n", THIS->msg); +%} function printk (msg:string) %{ printk (KERN_INFO "%s\n", THIS->msg); |