[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1382222601.2041.31.camel@joe-AO722>
Date: Sat, 19 Oct 2013 15:43:21 -0700
From: Joe Perches <joe@...ches.com>
To: Marcel Holtmann <marcel@...tmann.org>
Cc: linux-kernel@...r.kernel.org
Subject: Re: [PATCH] vsprintf: add Bluetooth UUID %pU[rR] format specifier
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists