summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.printf/bin2.stp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/systemtap.printf/bin2.stp')
-rw-r--r--testsuite/systemtap.printf/bin2.stp13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/systemtap.printf/bin2.stp b/testsuite/systemtap.printf/bin2.stp
new file mode 100644
index 00000000..b7d221b5
--- /dev/null
+++ b/testsuite/systemtap.printf/bin2.stp
@@ -0,0 +1,13 @@
+probe begin
+{
+ printf("%1b", 0x12)
+ printf("%1b", 0x34)
+ printf("%1b%1b", 0x56, 0x78)
+ a = 0x12
+ b = 0x34
+ c = 0x56
+ d = 0x78
+ printf("%1b%1b%1b%1b", a, b, c, d)
+ printf("a=%1b b=%1b c=%1b d=%1b",a,b,c,d)
+ exit()
+}