[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1382339640.2041.70.camel@joe-AO722>
Date: Mon, 21 Oct 2013 00:14:00 -0700
From: Joe Perches <joe@...ches.com>
To: Marcel Holtmann <marcel@...tmann.org>
Cc: linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] vsprintf: add Bluetooth UUID %pU[rR] format specifier
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.
--
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