Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757349Ab0DARDm (ORCPT ); Thu, 1 Apr 2010 13:03:42 -0400 Received: from mail.perches.com ([173.55.12.10]:1315 "EHLO mail.perches.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751285Ab0DARDg (ORCPT ); Thu, 1 Apr 2010 13:03:36 -0400 Subject: Re: [PATCH 1/2 v4] scsi: add __print_hex() to ftrace From: Joe Perches To: rostedt@goodmis.org Cc: Kei Tokunaga , "linux-scsi@vger.kernel.org" , James Bottomley , Ingo Molnar , Frederic Weisbecker , "Martin K. Petersen" , Tomohiro Kusumi , lkml , Li Zefan , Xiao Guangrong In-Reply-To: <1270130265.19685.8933.camel@gandalf.stny.rr.com> References: <4BB4855E.7030509@jp.fujitsu.com> <4BB4864A.3060406@jp.fujitsu.com> <1270130265.19685.8933.camel@gandalf.stny.rr.com> Content-Type: text/plain; charset="UTF-8" Date: Thu, 01 Apr 2010 10:03:32 -0700 Message-ID: <1270141412.1483.130.camel@Joe-Laptop.home> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 635 Lines: 20 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? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/