lib/vsprintf: factor out %pN[F] handler as netdev_bits()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sat, 16 Jan 2016 00:59:20 +0000 (16:59 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 16 Jan 2016 19:17:30 +0000 (11:17 -0800)
commit5b17aecfcdd3dc82c237677f5efc9a44deeaa39e
tree65ce5228484a92bdc058e66dbff2324b5d63fbaa
parent3cab1e711297c4fbc526ca9b802ef61894c06545
lib/vsprintf: factor out %pN[F] handler as netdev_bits()

Move switch case to the netdev_features_string() and rename it to
netdev_bits().  In the future we can extend it as needed.

Here we replace the fallback of %pN from '%p' with possible flags to
sticter '0x%p' without any flags variation.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/vsprintf.c