aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/printk-formats.txt
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2012-07-30 17:40:23 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-07-30 20:25:14 -0400
commit76597ff989a1fbaa9b9a1e54007cd759bf257ab7 (patch)
tree51c5a7e99de7ff2ba88ba73b110a60c623c5d32c /Documentation/printk-formats.txt
parent61e99ab8e35a88b8c4d0f80d3df9ee16df471be5 (diff)
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>
Diffstat (limited to 'Documentation/printk-formats.txt')
-rw-r--r--Documentation/printk-formats.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/printk-formats.txt b/Documentation/printk-formats.txt
index 5df176ed59b8..d8d168fa79d6 100644
--- a/Documentation/printk-formats.txt
+++ b/Documentation/printk-formats.txt
@@ -56,6 +56,7 @@ Struct Resources:
56MAC/FDDI addresses: 56MAC/FDDI addresses:
57 57
58 %pM 00:01:02:03:04:05 58 %pM 00:01:02:03:04:05
59 %pMR 05:04:03:02:01:00
59 %pMF 00-01-02-03-04-05 60 %pMF 00-01-02-03-04-05
60 %pm 000102030405 61 %pm 000102030405
61 62
@@ -67,6 +68,10 @@ MAC/FDDI addresses:
67 the 'M' specifier to use dash ('-') separators instead of the default 68 the 'M' specifier to use dash ('-') separators instead of the default
68 separator. 69 separator.
69 70
71 For Bluetooth addresses the 'R' specifier shall be used after the 'M'
72 specifier to use reversed byte order suitable for visual interpretation
73 of Bluetooth addresses which are in the little endian order.
74
70IPv4 addresses: 75IPv4 addresses:
71 76
72 %pI4 1.2.3.4 77 %pI4 1.2.3.4