summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.samples/arith_limits.stp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/systemtap.samples/arith_limits.stp')
-rw-r--r--testsuite/systemtap.samples/arith_limits.stp7
1 files changed, 3 insertions, 4 deletions
diff --git a/testsuite/systemtap.samples/arith_limits.stp b/testsuite/systemtap.samples/arith_limits.stp
index f38a5a68..6c620830 100644
--- a/testsuite/systemtap.samples/arith_limits.stp
+++ b/testsuite/systemtap.samples/arith_limits.stp
@@ -8,7 +8,7 @@ function test (v,n1,n2) {
failures ++
result = "fail"
}
- log ("test " . (sprint (testno++)) . " [" . v . "]\t\t" . result)
+ printf ("test %d [%s]\t\t%s\n", testno++, v, result)
}
# Exactly the same as test() except it will magically work for strings.
@@ -22,7 +22,7 @@ function teststr (v,n1,n2) {
failures ++
result = "fail"
}
- log ("test " . (sprint (testno++)) . " [" . v . "]\t\t" . result)
+ printf ("test %d [%s]\t\t%s\n", testno++, v, result)
}
@@ -76,6 +76,5 @@ probe begin {
}
probe end {
- print ("passes: " . sprint(passes))
- print (" failures: " . sprint(failures). "\n")
+ printf ("passes: %d failures: %d\n", passes, failures)
}