lkml.org 
[lkml]   [2010]   [Apr]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 1/2 v4] scsi: add __print_hex() to ftrace
From
Date
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?




\
 
 \ /
  Last update: 2010-04-01 19:07    [W:0.038 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site