From dda823f922ac7294cd24eeb4b1bb7436af24c8c7 Mon Sep 17 00:00:00 2001 From: hunt Date: Mon, 12 Nov 2007 22:04:35 +0000 Subject: 2007-11-12 Martin Hunt * 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. --- testsuite/systemtap.samples/arith_limits.stp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'testsuite/systemtap.samples/arith_limits.stp') 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) } -- cgit