[PATCH] blktrace: pdu_buf of pc events should be unsigned

From: Li Zefan
Date: Mon May 11 2009 - 02:32:42 EST


I got this:
8,0 1 305.417782332 2037 I R 32 (ffffff9e 10 00 ...) [bash]

It should be:
8,0 1 305.417782332 2037 I R 32 (9e 10 00 ...) [bash]

[ Impact: fix output of pc events ]

Signed-off-by: Li Zefan <lizf@xxxxxxxxxxxxxx>
---
kernel/trace/blktrace.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/trace/blktrace.c b/kernel/trace/blktrace.c
index c223cd1..9c5a951 100644
--- a/kernel/trace/blktrace.c
+++ b/kernel/trace/blktrace.c
@@ -1071,7 +1071,7 @@ static int blk_log_action(struct trace_iterator *iter, const char *act)

static int blk_log_dump_pdu(struct trace_seq *s, const struct trace_entry *ent)
{
- const char *pdu_buf;
+ const unsigned char *pdu_buf;
int pdu_len;
int i, end, ret;

--
1.5.4.rc3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/