lkml.org 
[lkml]   [2019]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] tools/lib/traceevent, perf tools: Handle %pU format correctly
On Thu, 17 Oct 2019 13:54:23 +0200
David Sterba <dsterba@suse.cz> wrote:

> > So if there's an interest for very compact printing loop, something like
> > this produces the same output:
> >
> > for (i = 0; i < 8; i++) {
> > printf("%02X", buf[i]);
> > printf("%02X", buf[i]);
>
> Ok, test-before-post failure, this should be
>
> printf("%02X", buf[2 * i]);
> printf("%02X", buf[2 * i + 1]);
>
> > if (1 <= i && i <= 4)
> > putchar('-');
> > }

I'm fine if you want to post a v3 with this update.

-- Steve

\
 
 \ /
  Last update: 2019-10-17 14:33    [W:0.029 / U:6.368 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site