diff options
author | hunt <hunt> | 2007-11-12 22:04:35 +0000 |
---|---|---|
committer | hunt <hunt> | 2007-11-12 22:04:35 +0000 |
commit | dda823f922ac7294cd24eeb4b1bb7436af24c8c7 (patch) | |
tree | bf8a4507dda929f48b1ad31e216b5694e1e99384 /testsuite/systemtap.samples/arith_limits.stp | |
parent | eddde980ee23baef42edb992da5cb977ba6b4c0c (diff) | |
download | systemtap-steved-dda823f922ac7294cd24eeb4b1bb7436af24c8c7.tar.gz systemtap-steved-dda823f922ac7294cd24eeb4b1bb7436af24c8c7.tar.xz systemtap-steved-dda823f922ac7294cd24eeb4b1bb7436af24c8c7.zip |
2007-11-12 Martin Hunt <hunt@redhat.com>
* systemtap.base/*.stp: Replace log() calls with
println() (or printf() if formatting would help.)
* systemtap.maps/*.stp: Ditto.
* systemtap.samples/*.stp: Ditto.
* systemtap.stress/*.stp: Ditto.
Diffstat (limited to 'testsuite/systemtap.samples/arith_limits.stp')
-rw-r--r-- | testsuite/systemtap.samples/arith_limits.stp | 7 |
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) } |