Messages in this thread | | | Subject | Re: [PATCH] vsprintf: add Bluetooth UUID %pU[rR] format specifier | From | Joe Perches <> | Date | Sat, 19 Oct 2013 15:43:21 -0700 |
| |
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
| |