]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
lockdep: Use info level for lockdep initial info messages
authorJiri Slaby (SUSE) <jirislaby@kernel.org>
Mon, 7 Oct 2024 06:54:57 +0000 (08:54 +0200)
committerBoqun Feng <boqun.feng@gmail.com>
Fri, 18 Oct 2024 04:21:16 +0000 (21:21 -0700)
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
kernel/locking/lockdep.c

index 6fd4af217e7110cf6385c02cce3741bbb9e234e1..2d8ec0351ef9bd67fd3f4adf61f41dc5ecae7131 100644 (file)
@@ -6600,17 +6600,17 @@ EXPORT_SYMBOL_GPL(lockdep_unregister_key);
 
 void __init lockdep_init(void)
 {
-       printk("Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar\n");
+       pr_info("Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar\n");
 
-       printk("... MAX_LOCKDEP_SUBCLASSES:  %lu\n", MAX_LOCKDEP_SUBCLASSES);
-       printk("... MAX_LOCK_DEPTH:          %lu\n", MAX_LOCK_DEPTH);
-       printk("... MAX_LOCKDEP_KEYS:        %lu\n", MAX_LOCKDEP_KEYS);
-       printk("... CLASSHASH_SIZE:          %lu\n", CLASSHASH_SIZE);
-       printk("... MAX_LOCKDEP_ENTRIES:     %lu\n", MAX_LOCKDEP_ENTRIES);
-       printk("... MAX_LOCKDEP_CHAINS:      %lu\n", MAX_LOCKDEP_CHAINS);
-       printk("... CHAINHASH_SIZE:          %lu\n", CHAINHASH_SIZE);
+       pr_info("... MAX_LOCKDEP_SUBCLASSES:  %lu\n", MAX_LOCKDEP_SUBCLASSES);
+       pr_info("... MAX_LOCK_DEPTH:          %lu\n", MAX_LOCK_DEPTH);
+       pr_info("... MAX_LOCKDEP_KEYS:        %lu\n", MAX_LOCKDEP_KEYS);
+       pr_info("... CLASSHASH_SIZE:          %lu\n", CLASSHASH_SIZE);
+       pr_info("... MAX_LOCKDEP_ENTRIES:     %lu\n", MAX_LOCKDEP_ENTRIES);
+       pr_info("... MAX_LOCKDEP_CHAINS:      %lu\n", MAX_LOCKDEP_CHAINS);
+       pr_info("... CHAINHASH_SIZE:          %lu\n", CHAINHASH_SIZE);
 
-       printk(" memory used by lock dependency info: %zu kB\n",
+       pr_info(" memory used by lock dependency info: %zu kB\n",
               (sizeof(lock_classes) +
                sizeof(lock_classes_in_use) +
                sizeof(classhash_table) +
@@ -6628,12 +6628,12 @@ void __init lockdep_init(void)
                );
 
 #if defined(CONFIG_TRACE_IRQFLAGS) && defined(CONFIG_PROVE_LOCKING)
-       printk(" memory used for stack traces: %zu kB\n",
+       pr_info(" memory used for stack traces: %zu kB\n",
               (sizeof(stack_trace) + sizeof(stack_trace_hash)) / 1024
               );
 #endif
 
-       printk(" per task-struct memory footprint: %zu bytes\n",
+       pr_info(" per task-struct memory footprint: %zu bytes\n",
               sizeof(((struct task_struct *)NULL)->held_locks));
 }