diff options
author | hunt <hunt> | 2007-10-18 16:27:40 +0000 |
---|---|---|
committer | hunt <hunt> | 2007-10-18 16:27:40 +0000 |
commit | 5730d0d038d1186d2ea4ec0476efb1a453c8c8f4 (patch) | |
tree | 4cec428720d5001387a2a63f36781e5818cbe6b4 /testsuite/systemtap.printf | |
parent | 333fe7b868dcd622b4c3b50afb4c6e833a260df0 (diff) | |
download | systemtap-steved-5730d0d038d1186d2ea4ec0476efb1a453c8c8f4.tar.gz systemtap-steved-5730d0d038d1186d2ea4ec0476efb1a453c8c8f4.tar.xz systemtap-steved-5730d0d038d1186d2ea4ec0476efb1a453c8c8f4.zip |
*** empty log message ***
Diffstat (limited to 'testsuite/systemtap.printf')
-rw-r--r-- | testsuite/systemtap.printf/bin3.stp | 15 | ||||
-rw-r--r-- | testsuite/systemtap.printf/bin4.stp | 15 | ||||
-rw-r--r-- | testsuite/systemtap.printf/bin5.stp | 15 |
3 files changed, 21 insertions, 24 deletions
diff --git a/testsuite/systemtap.printf/bin3.stp b/testsuite/systemtap.printf/bin3.stp index ac86059d..c0a30448 100644 --- a/testsuite/systemtap.printf/bin3.stp +++ b/testsuite/systemtap.printf/bin3.stp @@ -4,14 +4,13 @@ probe begin { - set_endian(2) - printf("%2b", 0x12) - printf("%2b", 0x34) - printf("%2b%2b", 0xabcd, 0x5678) - a = 0x12345678 - b = 0xabcd - c = 0x8888 - d = 0xcdef + printf("%2b", big_endian2(0x12)) + printf("%2b", big_endian2(0x34)) + printf("%2b%2b", big_endian2(0xabcd), big_endian2(0x5678)) + a = big_endian2(0x12345678) + b = big_endian2(0xabcd) + c = big_endian2(0x8888) + d = big_endian2(0xcdef) printf("%2b%2b%2b%2b", a, b, c, d) printf("a=%2b b=%2b c=%2b d=%2b",a,b,c,d) exit() 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() diff --git a/testsuite/systemtap.printf/bin5.stp b/testsuite/systemtap.printf/bin5.stp index 3a88de60..ebee2e01 100644 --- a/testsuite/systemtap.printf/bin5.stp +++ b/testsuite/systemtap.printf/bin5.stp @@ -4,14 +4,13 @@ probe begin { - set_endian(2) - printf("%8b", 0x12) - printf("%8b", 0x34) - printf("%8b%8b", 0xabcd000011112222, 0x5678567856785678) - a = 0x0012345678abcdef - b = 0x1111222233334444 - c = 0x88889999aaaabbbb - d = 0xcdef000011112222 + printf("%8b", big_endian8(0x12)) + printf("%8b", big_endian8(0x34)) + printf("%8b%8b", big_endian8(0xabcd000011112222), big_endian8(0x5678567856785678)) + a = big_endian8(0x0012345678abcdef) + b = big_endian8(0x1111222233334444) + c = big_endian8(0x88889999aaaabbbb) + d = big_endian8(0xcdef000011112222) printf("%8b%8b%8b%8b", a, b, c, d) printf("a=%8b b=%8b c=%8b d=%8b",a,b,c,d) exit() |