@@ -494,7 +494,6 @@ static void seq_stats(struct seq_file *m, struct lock_stat_data *data)
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 )
@@ -503,15 +502,13 @@ static void seq_stats(struct seq_file *m, struct lock_stat_data *data)
503
502
if (!i )
504
503
seq_line (m , '-' , 40 - namelen , namelen );
505
504
506
- sprint_symbol (sym , class -> contention_point [i ]);
507
505
snprintf (ip , sizeof (ip ), "[<%p>]" ,
508
506
(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 ] );
512
510
}
513
511
for (i = 0 ; i < LOCKSTAT_POINTS ; i ++ ) {
514
- char sym [KSYM_SYMBOL_LEN ];
515
512
char ip [32 ];
516
513
517
514
if (class -> contending_point [i ] == 0 )
@@ -520,12 +517,11 @@ static void seq_stats(struct seq_file *m, struct lock_stat_data *data)
520
517
if (!i )
521
518
seq_line (m , '-' , 40 - namelen , namelen );
522
519
523
- sprint_symbol (sym , class -> contending_point [i ]);
524
520
snprintf (ip , sizeof (ip ), "[<%p>]" ,
525
521
(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 ] );
529
525
}
530
526
if (i ) {
531
527
seq_puts (m , "\n" );
0 commit comments