]> www.infradead.org Git - linux.git/commit
crash: add prefix for crash dumping messages
authorBaoquan He <bhe@redhat.com>
Thu, 18 Apr 2024 03:58:43 +0000 (11:58 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 8 May 2024 15:41:26 +0000 (08:41 -0700)
commit4707c13de3e42a47f0d99fe5fb58fa9dd23b455e
treed1319f659199c9920e58d74106e4361fd77113cd
parent055e09ac54ae9c8396c1086fe06a73e0ce9bdd10
crash: add prefix for crash dumping messages

Add pr_fmt() to kernel/crash_core.c to add the module name to debugging
message printed as prefix.

And also add prefix 'crashkernel:' to two lines of message printing code
in kernel/crash_reserve.c. In kernel/crash_reserve.c, almost all
debugging messages have 'crashkernel:' prefix or there's keyword
crashkernel at the beginning or in the middle, adding pr_fmt() makes it
redundant.

Link: https://lkml.kernel.org/r/20240418035843.1562887-1-bhe@redhat.com
Signed-off-by: Baoquan He <bhe@redhat.com>
Cc: Dave Young <dyoung@redhat.com>
Cc: Jiri Slaby <jirislaby@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/crash_core.c
kernel/crash_reserve.c