Re: [PATCH] vsprintf: add Bluetooth UUID %pU[rR] format specifier
From: Joe Perches
Date: Sat Oct 19 2013 - 18:43:29 EST
On Sun, 2013-10-20 at 00:30 +0200, Marcel Holtmann wrote:
> Hi Joe,
Hi Marcel
> > Could there ever be a little endian reversed UUID?
> I honestly do not know. I looked at the little endian one and it
> looked a bit heavy misplaced if we would use a reversed stream of
> bytes.
> > Might it be useful to change this to:
> >
> > while (isalpha(*++fmt)) {
> > switch (*fmt) {
>
> I didn't do it so the modifier didn't get any longer than it needs to be.
Given that %pU is big endian by default, then the modifier
doesn't have to get longer. %pUR and %pUr would still be
big endian and this would simply allow %pULR if necessary.
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/