public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] clean hex output of ftrace
@ 2008-10-08 22:04 trem
  2008-10-08 22:22 ` Joe Perches
  0 siblings, 1 reply; 6+ messages in thread
From: trem @ 2008-10-08 22:04 UTC (permalink / raw)
  To: linux-kernel; +Cc: Steven Rostedt

Fix the output of ftrace in hex mode. Without this patch, the ouput of ftrace is :

raw mode : 6474 0 141531612444 0 140 + 6402 120 S
hex mode : 000091a4 00000000 000000023f1f50c1 00000000 c8 000000b2 00009120 87 ffff00c8 00000035

There is an inversion on ouput hex(6474) is 194a

Signed-off-by: Philippe Reynes <tremyfr@yahoo.fr>
---

Index: linux-2.6.26/kernel/trace/trace.c
===================================================================
--- linux-2.6.26/kernel/trace/trace.c
+++ linux-2.6.26/kernel/trace/trace.c   2008-10-08 22:30:29.000000000 +0200
@@ -415,8 +415,8 @@
 #endif
                byte = data[i];
 
-               hex[j++] = hex2asc[byte & 0x0f];
                hex[j++] = hex2asc[byte >> 4];
+               hex[j++] = hex2asc[byte & 0x0f];
        }
        hex[j++] = ' ';



^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <Pine.LNX.4.30.0810081715520.2487-100000@perches.com>]

end of thread, other threads:[~2008-10-09 23:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-08 22:04 [patch] clean hex output of ftrace trem
2008-10-08 22:22 ` Joe Perches
2008-10-08 23:51   ` Harvey Harrison
     [not found] <Pine.LNX.4.30.0810081715520.2487-100000@perches.com>
2008-10-09  0:44 ` Harvey Harrison
2008-10-09 12:31   ` Ingo Molnar
2008-10-09 23:53     ` Harvey Harrison

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox