]> git.baikalelectronics.ru Git - kernel.git/commit
vsprintf: add %pMR for Bluetooth MAC address
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Mon, 30 Jul 2012 21:40:23 +0000 (14:40 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 31 Jul 2012 00:25:14 +0000 (17:25 -0700)
commite0fe78c137aa72595b3b1d137c86d613839910ce
tree51c5a7e99de7ff2ba88ba73b110a60c623c5d32c
parentc04a1750d38d48f1c6f68288096467361d146e8d
vsprintf: add %pMR for Bluetooth MAC address

Bluetooth uses mostly LE byte order which is reversed for visual
interpretation.  Currently in Bluetooth in use unsafe batostr function.

This is a slightly modified version of Joe's patch (sent Sat, Dec 4,
2010).

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Cc: Joe Perches <joe@perches.com>
Cc: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/printk-formats.txt
lib/vsprintf.c