lkml.org 
[lkml]   [2013]   [Oct]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] vsprintf: add Bluetooth UUID %pU[rR] format specifier
From
Date
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



\
 
 \ /
  Last update: 2013-10-20 01:01    [W:0.113 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site