Re: [PATCH 1/2 v4] scsi: add __print_hex() to ftrace

From: Li Zefan
Date: Thu Apr 01 2010 - 22:40:39 EST


Joe Perches wrote:
> On Thu, 2010-04-01 at 09:57 -0400, Steven Rostedt wrote:
>>> +const char *
>>> +ftrace_print_hex_seq(struct trace_seq *p, const unsigned char *buf, int buf_len)
>>> +{
>>> + int i;
>>> + const char *ret = p->buffer + p->len;
>>> +
>>> + for (i = 0; i < buf_len; i++)
>>> + trace_seq_printf(p, "%s%2.2x", i == 0 ? "" : " ", buf[i]);
>>> +
>>> + trace_seq_putc(p, 0);
>
> hex_dump_to_buffer?
>

I've replied to you on this long ago, in v3 (or v2) patch.

--
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/