Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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) <jirislaby@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Will Deacon <will@kernel.org>
Cc: Waiman Long <longman@redhat.com>
Cc: Boqun Feng <boqun.feng@gmail.com>
Reviewed-by: Waiman Long <longman@redhat.com>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Link: https://lore.kernel.org/r/20241007065457.20128-1-jirislaby@kernel.org

authored by

Jiri Slaby (SUSE) and committed by
Boqun Feng
e48bf7ca 5eadeb7b

+11 -11
+11 -11
kernel/locking/lockdep.c
··· 6600 6600 6601 6601 void __init lockdep_init(void) 6602 6602 { 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"); 6604 6604 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); 6612 6612 6613 - printk(" memory used by lock dependency info: %zu kB\n", 6613 + pr_info(" memory used by lock dependency info: %zu kB\n", 6614 6614 (sizeof(lock_classes) + 6615 6615 sizeof(lock_classes_in_use) + 6616 6616 sizeof(classhash_table) + ··· 6628 6628 ); 6629 6629 6630 6630 #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", 6632 6632 (sizeof(stack_trace) + sizeof(stack_trace_hash)) / 1024 6633 6633 ); 6634 6634 #endif 6635 6635 6636 - printk(" per task-struct memory footprint: %zu bytes\n", 6636 + pr_info(" per task-struct memory footprint: %zu bytes\n", 6637 6637 sizeof(((struct task_struct *)NULL)->held_locks)); 6638 6638 } 6639 6639