diff options
Diffstat (limited to 'kernel/kallsyms.c')
-rw-r--r-- | kernel/kallsyms.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/kernel/kallsyms.c b/kernel/kallsyms.c index 6f6d091b5757..75dcca37d61a 100644 --- a/kernel/kallsyms.c +++ b/kernel/kallsyms.c | |||
@@ -477,13 +477,11 @@ static int s_show(struct seq_file *m, void *p) | |||
477 | */ | 477 | */ |
478 | type = iter->exported ? toupper(iter->type) : | 478 | type = iter->exported ? toupper(iter->type) : |
479 | tolower(iter->type); | 479 | tolower(iter->type); |
480 | seq_printf(m, "%0*lx %c %s\t[%s]\n", | 480 | seq_printf(m, "%pK %c %s\t[%s]\n", (void *)iter->value, |
481 | (int)(2 * sizeof(void *)), | 481 | type, iter->name, iter->module_name); |
482 | iter->value, type, iter->name, iter->module_name); | ||
483 | } else | 482 | } else |
484 | seq_printf(m, "%0*lx %c %s\n", | 483 | seq_printf(m, "%pK %c %s\n", (void *)iter->value, |
485 | (int)(2 * sizeof(void *)), | 484 | iter->type, iter->name); |
486 | iter->value, iter->type, iter->name); | ||
487 | return 0; | 485 | return 0; |
488 | } | 486 | } |
489 | 487 | ||