Re: [PATCH 1/9] lib/vsprintf.c: Add %pU to print UUID/GUIDs

From: Joe Perches
Date: Thu Oct 01 2009 - 03:26:49 EST


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.

Keep in mind expansion for future different types and that
<foo> must be alphanumeric chars only.

cheers, Joe

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/