aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2010-02-04 18:28:03 -0500
committerSteven Rostedt <rostedt@goodmis.org>2010-02-04 18:28:03 -0500
commitf3c393decc3e0bb6c9e5dffe8f39ba290877912b (patch)
treef60d23b90e99752923616a47e2347298b43e7dd6
parentd5636fc29f6c8391428e4441c85ae5766e3724b5 (diff)
trace-cmd: Fix paperbag bug on determining endian in trace-cmd split
The test to determin endianess in trace-cmd split had a silly error that would always return big endian for the host. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r--trace-split.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/trace-split.c b/trace-split.c
index 96cda2d..9c30b52 100644
--- a/trace-split.c
+++ b/trace-split.c
@@ -74,7 +74,7 @@ static int create_type_len(struct pevent *pevent, int time, int len)
74 if (bigendian < 0) { 74 if (bigendian < 0) {
75 test = 0x4321; 75 test = 0x4321;
76 ptr = (char *)&test; 76 ptr = (char *)&test;
77 if (*ptr == 0x12) 77 if (*ptr == 0x21)
78 bigendian = 0; 78 bigendian = 0;
79 else 79 else
80 bigendian = 1; 80 bigendian = 1;