diff options
Diffstat (limited to 'testsuite/systemtap.printf/string2.stp')
-rw-r--r-- | testsuite/systemtap.printf/string2.stp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/systemtap.printf/string2.stp b/testsuite/systemtap.printf/string2.stp new file mode 100644 index 00000000..4d8e354b --- /dev/null +++ b/testsuite/systemtap.printf/string2.stp @@ -0,0 +1,12 @@ +probe begin +{ + # 50 chars + s = "12345678901234567890123456789012345678901234567890" + # 100 chars + t = s.s + printf("s is <%s>\n", s); + printf("t is <%s>\n", t); + for (i = 0; i < 100; i++) + printf("%2d: %s\n", i, t); + exit() +} |