printk: use %pK for /proc/kallsyms and /proc/modules
[pandora-kernel.git] / lib / vsprintf.c
index 070d134..ac444ff 100644 (file)
@@ -991,7 +991,7 @@ static noinline_for_stack
 char *pointer(const char *fmt, char *buf, char *end, void *ptr,
              struct printf_spec spec)
 {
-       if (!ptr) {
+       if (!ptr && *fmt != 'K') {
                /*
                 * Print (null) with the same width as a pointer so it makes
                 * tabular output look nice.