mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Joe Perches <joe@perches.com>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] vsprintf: add Bluetooth UUID %pU[rR] format specifier
Date: Sat, 19 Oct 2013 15:43:21 -0700	[thread overview]
Message-ID: <1382222601.2041.31.camel@joe-AO722> (raw)
In-Reply-To: <D753FB79-8E82-4F36-881A-68858145B688@holtmann.org>

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


      reply	other threads:[~2013-10-19 22:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-19 16:25 Marcel Holtmann
2013-10-19 21:24 ` Joe Perches
2013-10-19 22:30   ` Marcel Holtmann
2013-10-19 22:43     ` Joe Perches [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1382222601.2041.31.camel@joe-AO722 \
    --to=joe@perches.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcel@holtmann.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®