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/primes.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/primes.stp')
-rw-r--r-- | testsuite/systemtap.samples/primes.stp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/testsuite/systemtap.samples/primes.stp b/testsuite/systemtap.samples/primes.stp index 7e7aeb37..1072b4b2 100644 --- a/testsuite/systemtap.samples/primes.stp +++ b/testsuite/systemtap.samples/primes.stp @@ -1,5 +1,7 @@ #! stap + global odds, evens + probe begin { # "no" and "ne" are local integers for (i=1; i<10; i++) { @@ -13,9 +15,9 @@ probe begin { probe end { foreach (x+ in odds) { - log("odds[" . sprint(x) . "] = " . sprint(odds[x])) + printf("odds[%d] = %d\n", x, odds[x]) } foreach (x in evens-) { - log("evens[" . sprint(x) . "] = " . sprint(evens[x])) + printf("evens[%d] = %d\n", x, evens[x]) } } |