summaryrefslogtreecommitdiffstats
path: root/testsuite/buildok/printf.stp
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-09-25 15:38:41 +0200
committerMark Wielaard <mjw@redhat.com>2009-09-25 15:38:41 +0200
commit8ff751a496bca1089f297adc0ff5ca65a0e6be24 (patch)
treee79dc7f142c486439d07a5331f9648f687c6d6ac /testsuite/buildok/printf.stp
parente8a9b507f1235e7a86a8a37fe0fc08dc519b8001 (diff)
downloadsystemtap-steved-8ff751a496bca1089f297adc0ff5ca65a0e6be24.tar.gz
systemtap-steved-8ff751a496bca1089f297adc0ff5ca65a0e6be24.tar.xz
systemtap-steved-8ff751a496bca1089f297adc0ff5ca65a0e6be24.zip
Purge warnings from buildok testsuite.
* testsuite/buildok/fortysix.stp: Add -w. * testsuite/buildok/fortytwo.stp: Likewise. * testsuite/buildok/four.stp: Avoid empty begin. * testsuite/buildok/memory-all-probes.stp: Add -w. * testsuite/buildok/nfsd-all-probes.stp: Likewise. * testsuite/buildok/nine.stp: Likewise. * testsuite/buildok/one.stp: Use q. * testsuite/buildok/printf.stp: Remove unused foo(), printf x. * testsuite/buildok/process-all-probes.stp: Add -w. * testsuite/buildok/scheduler-all-probes.stp: Likewise. * testsuite/buildok/scsi-all-probes.stp: Likewise. * testsuite/buildok/signal-all-probes.stp: Likewise. * testsuite/buildok/sixteen.stp: log in foo(). * testsuite/buildok/socket-all-probes.stp: Add -w. * testsuite/buildok/stat_insert.stp: Declare x, y global. * testsuite/buildok/syscall.stp: Add -w. * testsuite/buildok/tcp-all-probes.stp: Likewise. * testsuite/buildok/thirtyone.stp: Likewise. * testsuite/buildok/twentyeight.stp: log absolute. * testsuite/buildok/twentyfour.stp: Add -w. * testsuite/buildok/udp-all-probes.stp: Likewise. * testsuite/buildok/vfs-all-probes.stp: Likewise.
Diffstat (limited to 'testsuite/buildok/printf.stp')
-rwxr-xr-xtestsuite/buildok/printf.stp6
1 files changed, 1 insertions, 5 deletions
diff --git a/testsuite/buildok/printf.stp b/testsuite/buildok/printf.stp
index 481892a2..aa533f9d 100755
--- a/testsuite/buildok/printf.stp
+++ b/testsuite/buildok/printf.stp
@@ -1,14 +1,10 @@
#! stap -p4
# test the translatability of the formatted printing operators
-
-function foo() {
- return 10
-}
-
probe begin
{
x = sprintf("take %d steps forward, %d steps back\n", 3, 2)
+ printf("%s", x);
printf("take %d steps forward, %d steps back\n", 3, 2)
printf("take %d steps forward, %d steps back\n", 3+1, 2*2)