summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.printf/bin4.stp
diff options
context:
space:
mode:
authorhunt <hunt>2007-10-18 16:27:40 +0000
committerhunt <hunt>2007-10-18 16:27:40 +0000
commit5730d0d038d1186d2ea4ec0476efb1a453c8c8f4 (patch)
tree4cec428720d5001387a2a63f36781e5818cbe6b4 /testsuite/systemtap.printf/bin4.stp
parent333fe7b868dcd622b4c3b50afb4c6e833a260df0 (diff)
downloadsystemtap-steved-5730d0d038d1186d2ea4ec0476efb1a453c8c8f4.tar.gz
systemtap-steved-5730d0d038d1186d2ea4ec0476efb1a453c8c8f4.tar.xz
systemtap-steved-5730d0d038d1186d2ea4ec0476efb1a453c8c8f4.zip
*** empty log message ***
Diffstat (limited to 'testsuite/systemtap.printf/bin4.stp')
-rw-r--r--testsuite/systemtap.printf/bin4.stp15
1 files changed, 7 insertions, 8 deletions
diff --git a/testsuite/systemtap.printf/bin4.stp b/testsuite/systemtap.printf/bin4.stp
index 638a38e6..40bbec7f 100644
--- a/testsuite/systemtap.printf/bin4.stp
+++ b/testsuite/systemtap.printf/bin4.stp
@@ -3,14 +3,13 @@
probe begin
{
- set_endian(2)
- printf("%4b", 0x12)
- printf("%4b", 0x34)
- printf("%4b%4b", 0xabcdef00, 0x5678)
- a = 0x12345678
- b = 0x11112222
- c = 0x88889999
- d = 0xcdef0000
+ printf("%4b", big_endian4(0x12))
+ printf("%4b", big_endian4(0x34))
+ printf("%4b%4b", big_endian4(0xabcdef00), big_endian4(0x5678))
+ a = big_endian4(0x12345678)
+ b = big_endian4(0x11112222)
+ c = big_endian4(0x88889999)
+ d = big_endian4(0xcdef0000)
printf("%4b%4b%4b%4b", a, b, c, d)
printf("a=%4b b=%4b c=%4b d=%4b",a,b,c,d)
exit()