lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20191017083137.1984af24@gandalf.local.home>
Date:   Thu, 17 Oct 2019 08:31:37 -0400
From:   Steven Rostedt <rostedt@...dmis.org>
To:     David Sterba <dsterba@...e.cz>
Cc:     Qu Wenruo <wqu@...e.com>, linux-btrfs@...r.kernel.org,
        linux-kernel@...r.kernel.org, linux-trace-devel@...r.kernel.org
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@...e.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ