Skip to content

Commit a030f97

Browse files
Waiman-LongPeter Zijlstra
authored andcommitted
locking/lockdep: Fix lockdep_stats indentation problem
It was found that two lines in the output of /proc/lockdep_stats have indentation problem: # cat /proc/lockdep_stats : in-process chains: 25057 stack-trace entries: 137827 [max: 524288] number of stack traces: 7973 number of stack hash chains: 6355 combined max dependencies: 1356414598 hardirq-safe locks: 57 hardirq-unsafe locks: 1286 : All the numbers displayed in /proc/lockdep_stats except the two stack trace numbers are formatted with a field with of 11. To properly align all the numbers, a field width of 11 is now added to the two stack trace numbers. Fixes: 8c77922 ("locking/lockdep: Report more stack trace statistics") Signed-off-by: Waiman Long <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Bart Van Assche <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent b3a987b commit a030f97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/locking/lockdep_proc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,9 @@ static int lockdep_stats_show(struct seq_file *m, void *v)
286286
seq_printf(m, " stack-trace entries: %11lu [max: %lu]\n",
287287
nr_stack_trace_entries, MAX_STACK_TRACE_ENTRIES);
288288
#if defined(CONFIG_TRACE_IRQFLAGS) && defined(CONFIG_PROVE_LOCKING)
289-
seq_printf(m, " number of stack traces: %llu\n",
289+
seq_printf(m, " number of stack traces: %11llu\n",
290290
lockdep_stack_trace_count());
291-
seq_printf(m, " number of stack hash chains: %llu\n",
291+
seq_printf(m, " number of stack hash chains: %11llu\n",
292292
lockdep_stack_hash_count());
293293
#endif
294294
seq_printf(m, " combined max dependencies: %11u\n",

0 commit comments

Comments
 (0)