locking, lockdep: Convert sprintf_symbol to %pS

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Jiri Kosina <trivial@kernel.org>
LKML-Reference: <1288998760-11775-6-git-send-email-joe@perches.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

authored by Joe Perches and committed by Ingo Molnar 3cf9b85b f6614b7b

+6 -10
+6 -10
kernel/lockdep_proc.c
··· 494 494 namelen += 2; 495 495 496 496 for (i = 0; i < LOCKSTAT_POINTS; i++) { 497 - char sym[KSYM_SYMBOL_LEN]; 498 497 char ip[32]; 499 498 500 499 if (class->contention_point[i] == 0) ··· 502 503 if (!i) 503 504 seq_line(m, '-', 40-namelen, namelen); 504 505 505 - sprint_symbol(sym, class->contention_point[i]); 506 506 snprintf(ip, sizeof(ip), "[<%p>]", 507 507 (void *)class->contention_point[i]); 508 - seq_printf(m, "%40s %14lu %29s %s\n", name, 509 - stats->contention_point[i], 510 - ip, sym); 508 + seq_printf(m, "%40s %14lu %29s %pS\n", 509 + name, stats->contention_point[i], 510 + ip, (void *)class->contention_point[i]); 511 511 } 512 512 for (i = 0; i < LOCKSTAT_POINTS; i++) { 513 - char sym[KSYM_SYMBOL_LEN]; 514 513 char ip[32]; 515 514 516 515 if (class->contending_point[i] == 0) ··· 517 520 if (!i) 518 521 seq_line(m, '-', 40-namelen, namelen); 519 522 520 - sprint_symbol(sym, class->contending_point[i]); 521 523 snprintf(ip, sizeof(ip), "[<%p>]", 522 524 (void *)class->contending_point[i]); 523 - seq_printf(m, "%40s %14lu %29s %s\n", name, 524 - stats->contending_point[i], 525 - ip, sym); 525 + seq_printf(m, "%40s %14lu %29s %pS\n", 526 + name, stats->contending_point[i], 527 + ip, (void *)class->contending_point[i]); 526 528 } 527 529 if (i) { 528 530 seq_puts(m, "\n");