Skip to content

Commit e48bf7c

Browse files
Jiri Slaby (SUSE)fbq
authored andcommitted
lockdep: Use info level for lockdep initial info messages
All those: Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar ... MAX_LOCKDEP_SUBCLASSES: 8 ... MAX_LOCK_DEPTH: 48 ... MAX_LOCKDEP_KEYS: 8192 and so on are dumped with the KERN_WARNING level. It is due to missing KERN_* annotation. Use pr_info() instead of bare printk() to dump the info with the info level. Signed-off-by: Jiri Slaby (SUSE) <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Will Deacon <[email protected]> Cc: Waiman Long <[email protected]> Cc: Boqun Feng <[email protected]> Reviewed-by: Waiman Long <[email protected]> Signed-off-by: Boqun Feng <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 5eadeb7 commit e48bf7c

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

kernel/locking/lockdep.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6600,17 +6600,17 @@ EXPORT_SYMBOL_GPL(lockdep_unregister_key);
66006600

66016601
void __init lockdep_init(void)
66026602
{
6603-
printk("Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar\n");
6603+
pr_info("Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar\n");
66046604

6605-
printk("... MAX_LOCKDEP_SUBCLASSES: %lu\n", MAX_LOCKDEP_SUBCLASSES);
6606-
printk("... MAX_LOCK_DEPTH: %lu\n", MAX_LOCK_DEPTH);
6607-
printk("... MAX_LOCKDEP_KEYS: %lu\n", MAX_LOCKDEP_KEYS);
6608-
printk("... CLASSHASH_SIZE: %lu\n", CLASSHASH_SIZE);
6609-
printk("... MAX_LOCKDEP_ENTRIES: %lu\n", MAX_LOCKDEP_ENTRIES);
6610-
printk("... MAX_LOCKDEP_CHAINS: %lu\n", MAX_LOCKDEP_CHAINS);
6611-
printk("... CHAINHASH_SIZE: %lu\n", CHAINHASH_SIZE);
6605+
pr_info("... MAX_LOCKDEP_SUBCLASSES: %lu\n", MAX_LOCKDEP_SUBCLASSES);
6606+
pr_info("... MAX_LOCK_DEPTH: %lu\n", MAX_LOCK_DEPTH);
6607+
pr_info("... MAX_LOCKDEP_KEYS: %lu\n", MAX_LOCKDEP_KEYS);
6608+
pr_info("... CLASSHASH_SIZE: %lu\n", CLASSHASH_SIZE);
6609+
pr_info("... MAX_LOCKDEP_ENTRIES: %lu\n", MAX_LOCKDEP_ENTRIES);
6610+
pr_info("... MAX_LOCKDEP_CHAINS: %lu\n", MAX_LOCKDEP_CHAINS);
6611+
pr_info("... CHAINHASH_SIZE: %lu\n", CHAINHASH_SIZE);
66126612

6613-
printk(" memory used by lock dependency info: %zu kB\n",
6613+
pr_info(" memory used by lock dependency info: %zu kB\n",
66146614
(sizeof(lock_classes) +
66156615
sizeof(lock_classes_in_use) +
66166616
sizeof(classhash_table) +
@@ -6628,12 +6628,12 @@ void __init lockdep_init(void)
66286628
);
66296629

66306630
#if defined(CONFIG_TRACE_IRQFLAGS) && defined(CONFIG_PROVE_LOCKING)
6631-
printk(" memory used for stack traces: %zu kB\n",
6631+
pr_info(" memory used for stack traces: %zu kB\n",
66326632
(sizeof(stack_trace) + sizeof(stack_trace_hash)) / 1024
66336633
);
66346634
#endif
66356635

6636-
printk(" per task-struct memory footprint: %zu bytes\n",
6636+
pr_info(" per task-struct memory footprint: %zu bytes\n",
66376637
sizeof(((struct task_struct *)NULL)->held_locks));
66386638
}
66396639

0 commit comments

Comments
 (0)