]> git.baikalelectronics.ru Git - kernel.git/commit
printk: add %pM format specifier for MAC addresses
authorHarvey Harrison <harvey.harrison@gmail.com>
Mon, 27 Oct 2008 22:47:12 +0000 (15:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Oct 2008 00:06:15 +0000 (17:06 -0700)
commitb455ef3e785582f7694e95905c703f1cf51ba579
tree0769c1655b55f2528e9aaf8f96ba8d856f72f0ca
parent17c4cc476c567f3d26a7bb21988b6ef8148c84c1
printk: add %pM format specifier for MAC addresses

Add format specifiers for printing out six colon-separated bytes:

MAC addresses (%pM):
xx:xx:xx:xx:xx:xx

%#pM is also supported and omits the colon separators.

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/vsprintf.c