Skip to content

Commit 3cf9b85

Browse files
JoePerchesIngo Molnar
authored andcommitted
locking, lockdep: Convert sprintf_symbol to %pS
Signed-off-by: Joe Perches <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Jiri Kosina <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
1 parent f6614b7 commit 3cf9b85

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

kernel/lockdep_proc.c

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,6 @@ static void seq_stats(struct seq_file *m, struct lock_stat_data *data)
494494
namelen += 2;
495495

496496
for (i = 0; i < LOCKSTAT_POINTS; i++) {
497-
char sym[KSYM_SYMBOL_LEN];
498497
char ip[32];
499498

500499
if (class->contention_point[i] == 0)
@@ -503,15 +502,13 @@ static void seq_stats(struct seq_file *m, struct lock_stat_data *data)
503502
if (!i)
504503
seq_line(m, '-', 40-namelen, namelen);
505504

506-
sprint_symbol(sym, class->contention_point[i]);
507505
snprintf(ip, sizeof(ip), "[<%p>]",
508506
(void *)class->contention_point[i]);
509-
seq_printf(m, "%40s %14lu %29s %s\n", name,
510-
stats->contention_point[i],
511-
ip, sym);
507+
seq_printf(m, "%40s %14lu %29s %pS\n",
508+
name, stats->contention_point[i],
509+
ip, (void *)class->contention_point[i]);
512510
}
513511
for (i = 0; i < LOCKSTAT_POINTS; i++) {
514-
char sym[KSYM_SYMBOL_LEN];
515512
char ip[32];
516513

517514
if (class->contending_point[i] == 0)
@@ -520,12 +517,11 @@ static void seq_stats(struct seq_file *m, struct lock_stat_data *data)
520517
if (!i)
521518
seq_line(m, '-', 40-namelen, namelen);
522519

523-
sprint_symbol(sym, class->contending_point[i]);
524520
snprintf(ip, sizeof(ip), "[<%p>]",
525521
(void *)class->contending_point[i]);
526-
seq_printf(m, "%40s %14lu %29s %s\n", name,
527-
stats->contending_point[i],
528-
ip, sym);
522+
seq_printf(m, "%40s %14lu %29s %pS\n",
523+
name, stats->contending_point[i],
524+
ip, (void *)class->contending_point[i]);
529525
}
530526
if (i) {
531527
seq_puts(m, "\n");

0 commit comments

Comments
 (0)