Re: [PATCH v2] tools/lib/traceevent, perf tools: Handle %pU format correctly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 17 Oct 2019 13:54:23 +0200
David Sterba <dsterba@xxxxxxx> 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



[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux