Messages in this thread | | | Date | Thu, 17 Oct 2019 08:31:37 -0400 | From | Steven Rostedt <> | Subject | Re: [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
| |