From: Joe Perches <joe@perches.com>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] vsprintf: add Bluetooth UUID %pU[rR] format specifier
Date: Mon, 21 Oct 2013 00:14:00 -0700 [thread overview]
Message-ID: <1382339640.2041.70.camel@joe-AO722> (raw)
In-Reply-To: <1382301371-20428-1-git-send-email-marcel@holtmann.org>
On Sun, 2013-10-20 at 13:36 -0700, Marcel Holtmann wrote:
> The Bluetooth UUID is used in big endian reversed order. Add new
> modifier to print a UUID in big endian, but where the input byte
> stream is actually in reversed order.
Thanks Marcel.
This looks fine to me but for one nit that you
didn't add.
> diff --git a/Documentation/printk-formats.txt b/Documentation/printk-formats.txt
[]
> @@ -159,12 +159,18 @@ UUID/GUID addresses:
> %pUB 00010203-0405-0607-0809-0A0B0C0D0E0F
> %pUl 03020100-0504-0706-0809-0a0b0c0e0e0f
> %pUL 03020100-0504-0706-0809-0A0B0C0E0E0F
> + %pUr 0f0e0d0c-0b0a-0908-0706-050403020100
> + %pUR 0F0E0D0C-0B0A-0908-0706-050403020100
>
> For printing 16-byte UUID/GUIDs addresses. The additional 'l', 'L',
> 'b' and 'B' specifiers are used to specify a little endian order in
> lower ('l') or upper case ('L') hex characters - and big endian order
> in lower ('b') or upper case ('B') hex characters.
>
> + The additional 'r' and 'R' specifiers are used to specify reversed
> + big endian order in either lower ('r') or upper case ('R') hex
> + characters. This is useful for Bluetooth UUID addresses.
> +
> Where no additional specifiers are used the default little endian
> order with lower case hex characters will be printed.
The default is actually big endian lower case
It'd be nice to fix after this is accepted.
prev parent reply other threads:[~2013-10-21 7:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-20 20:36 Marcel Holtmann
2013-10-21 7:14 ` 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=1382339640.2041.70.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®