diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-11-25 00:40:37 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-25 00:40:37 -0800 |
commit | 411c41eea58bd3500cf897e2c27dd5330935a3a8 (patch) | |
tree | c6987d1351581def73321b7c8d518ac75db876a2 /lib/vsprintf.c | |
parent | 9c8f92aed16dbd1924910f3305f5992a4f29fe2a (diff) | |
download | lwn-411c41eea58bd3500cf897e2c27dd5330935a3a8.tar.gz lwn-411c41eea58bd3500cf897e2c27dd5330935a3a8.zip |
aoe: remove private mac address format function
Add %pm to omit the colons when printing a mac address.
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/vsprintf.c')
-rw-r--r-- | lib/vsprintf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 6897724ff5df..3b777025d876 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -669,6 +669,9 @@ static char *pointer(const char *fmt, char *buf, char *end, void *ptr, int field return symbol_string(buf, end, ptr, field_width, precision, flags); case 'R': return resource_string(buf, end, ptr, field_width, precision, flags); + case 'm': + flags |= SPECIAL; + /* Fallthrough */ case 'M': return mac_address_string(buf, end, ptr, field_width, precision, flags); case 'i': |