diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2007-10-21 16:34:49 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2007-10-21 16:34:49 -0400 |
commit | 24993e4fcae48ca014e6b53f3f9a011c9cfa8f06 (patch) | |
tree | 90080b050ab62e79e7d111cc764a75dba91ad485 /testsuite/systemtap.printf/bin5.stp | |
parent | 11088605d9c0ab753e613b9ae52b6e59948cfc83 (diff) | |
parent | f994dd4997067ca69b3b10ff8fa1547987aed585 (diff) | |
download | systemtap-steved-24993e4fcae48ca014e6b53f3f9a011c9cfa8f06.tar.gz systemtap-steved-24993e4fcae48ca014e6b53f3f9a011c9cfa8f06.tar.xz systemtap-steved-24993e4fcae48ca014e6b53f3f9a011c9cfa8f06.zip |
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'testsuite/systemtap.printf/bin5.stp')
-rw-r--r-- | testsuite/systemtap.printf/bin5.stp | 15 |
1 files changed, 7 insertions, 8 deletions
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() |