lkml.org 
[lkml]   [2009]   [Oct]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 1/9] lib/vsprintf.c: Add %pU to print UUID/GUIDs
From
Date
On Thu, 2009-10-01 at 10:55 +0200, Geert Uytterhoeven wrote:
> On Thu, Oct 1, 2009 at 09:26, Joe Perches <joe@perches.com> wrote:
> > On Thu, 2009-10-01 at 09:10 +0200, Geert Uytterhoeven wrote:
> >> > Standardize the printed style of UUID/GUIDs by using
> >> > another extension to %p.
> >> > %pU: 01020304-0506-0708-090a-0b0c0d0e0f10
> >> > %pUr: 04030201-0605-0807-090a-0b0c0d0e0f10
> >> > %pU[r]X:Use upper case hex
> >> To me, it looks a bit strange to have the options after the `U', combined with
> >> the variable-length nature.
> > I think the whole %p<foo> mechanism is strange and takes
> > a bit of getting used to.
> > You're free to suggest alternatives.
> `r' is reverse endianness?
> So what about
> %pUb: lower case big endian
> %pUl: lower case little endian
> %pUB: upper case big endian
> %pUL: upper case little endian
> That way it's fixed length, and easier to parse.

Thanks Geert.

That's OK with me.
%pU now defaults to %pUb and I'll resubmit it later.

Anyone else?



\
 
 \ /
  Last update: 2009-10-07 02:11    [W:2.713 / U:0.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site