summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/print.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/print.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/print.stp')
-rw-r--r--testsuite/systemtap.base/print.stp39
1 files changed, 20 insertions, 19 deletions
diff --git a/testsuite/systemtap.base/print.stp b/testsuite/systemtap.base/print.stp
index e1b64c35..161be4b4 100644
--- a/testsuite/systemtap.base/print.stp
+++ b/testsuite/systemtap.base/print.stp
@@ -8,32 +8,33 @@ global s1, s2, s3
probe begin
{
- log("systemtap starting probe")
- s1 = "systemtap"
- s2 = "test"
- s3 = "success"
+ println("systemtap starting probe")
+ s1 = "systemtap"
+ s2 = "test"
+ s3 = "success"
}
probe end
{
- log("systemtap ending probe")
+ println("systemtap ending probe")
- print(s1, " ", s2, " ", s3, "\n")
- print(sprint(s1, " ", s2, " ", s3, "\n"))
+ print(s1, " ", s2, " ", s3, "\n")
+ print(sprint(s1, " ", s2, " ", s3, "\n"))
- println(s1, " ", s2, " ", s3)
- print(sprintln(s1, " ", s2, " ", s3))
+ println(s1, " ", s2, " ", s3)
+ print(sprintln(s1, " ", s2, " ", s3))
- printd(" ", s1, s2, s3 . "\n")
- print(sprintd(" ", s1, s2, s3 . "\n"))
+ printd(" ", s1, s2, s3 . "\n")
+ print(sprintd(" ", s1, s2, s3 . "\n"))
- printdln(" ", s1, s2, s3)
- print(sprintdln(" ", s1, s2, s3))
+ printdln(" ", s1, s2, s3)
+ print(sprintdln(" ", s1, s2, s3))
- // check that formatting characters get escaped correctly in the delimiter
- s = sprintd("%% % \\ \"", 1, 2, 3)
- if (s == "1%% % \\ \"2%% % \\ \"3")
- log("systemtap test success")
- else
- log("systemtap test failure")
+ // Check that formatting characters get escaped correctly
+ // in the delimiter.
+ s = sprintd("%% % \\ \"", 1, 2, 3)
+ if (s == "1%% % \\ \"2%% % \\ \"3")
+ println("systemtap test success")
+ else
+ println("systemtap test failure")
}