summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/global_init.stp
diff options
context:
space:
mode:
authorhunt <hunt>2007-11-12 22:04:35 +0000
committerhunt <hunt>2007-11-12 22:04:35 +0000
commitdda823f922ac7294cd24eeb4b1bb7436af24c8c7 (patch)
treebf8a4507dda929f48b1ad31e216b5694e1e99384 /testsuite/systemtap.base/global_init.stp
parenteddde980ee23baef42edb992da5cb977ba6b4c0c (diff)
downloadsystemtap-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.base/global_init.stp')
-rw-r--r--testsuite/systemtap.base/global_init.stp8
1 files changed, 4 insertions, 4 deletions
diff --git a/testsuite/systemtap.base/global_init.stp b/testsuite/systemtap.base/global_init.stp
index a5d7e58e..30478846 100644
--- a/testsuite/systemtap.base/global_init.stp
+++ b/testsuite/systemtap.base/global_init.stp
@@ -4,8 +4,8 @@
* Check that global variables are initialized before all begin probes
*/
-probe begin { log("systemtap starting probe") }
-probe end { log("systemtap ending probe") }
+probe begin { println("systemtap starting probe") }
+probe end { println("systemtap ending probe") }
global gnum = 42
global gstr = "foobar"
@@ -19,12 +19,12 @@ probe begin(-9223372036854775808) {
probe end {
if (gnum_saved == 42)
- log("systemtap test success")
+ println("systemtap test success")
else
printf("systemtap test failure - gnum_saved:%d != 42\n", gnum_saved)
if (gstr_saved == "foobar")
- log("systemtap test success")
+ println("systemtap test success")
else
printf("systemtap test failure - gstr_saved:%s != foobar\n", gstr_saved)
}