lkml.org 
[lkml]   [2008]   [Oct]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch] clean hex output of ftrace
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++] = ' ';



\
 
 \ /
  Last update: 2008-10-09 00:07    [W:0.037 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site