]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kexec: use file name as the output message prefix
authorMinfei Huang <mnfhuang@gmail.com>
Wed, 21 Oct 2015 22:04:00 +0000 (09:04 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 Oct 2015 22:04:00 +0000 (09:04 +1100)
kexec output message misses the prefix "kexec", when Dave Young split the
kexec code.  Now, we use file name as the output message prefix.

Currently, the format of output message:
[  140.290795] SYSC_kexec_load: hello, world
[  140.291534] kexec: sanity_check_segment_list: hello, world

Ideally, the format of output message:
[   30.791503] kexec: SYSC_kexec_load, Hello, world
[   79.182752] kexec_core: sanity_check_segment_list, Hello, world

Remove the custom prefix "kexec" in output message.

Signed-off-by: Minfei Huang <mnfhuang@gmail.com>
Acked-by: Dave Young <dyoung@redhat.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/kexec.c
kernel/kexec_core.c
kernel/kexec_file.c

index 4c5edc357923a1b6198c9f8122b90b73b9a5e38f..d873b64fbddcdd9e1666738f2b6192c6c5dc0029 100644 (file)
@@ -6,6 +6,8 @@
  * Version 2.  See the file COPYING for more details.
  */
 
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
 #include <linux/capability.h>
 #include <linux/mm.h>
 #include <linux/file.h>
index 201b45327804d230edc9017eef6c07805ae3f8d3..dd21c783e3dde44769fbadc526ad5b73b1ea1a62 100644 (file)
@@ -6,7 +6,7 @@
  * Version 2.  See the file COPYING for more details.
  */
 
-#define pr_fmt(fmt)    "kexec: " fmt
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
 #include <linux/capability.h>
 #include <linux/mm.h>
@@ -1027,7 +1027,7 @@ static int __init crash_notes_memory_init(void)
 
        crash_notes = __alloc_percpu(size, align);
        if (!crash_notes) {
-               pr_warn("Kexec: Memory allocation for saving cpu register states failed\n");
+               pr_warn("Memory allocation for saving cpu register states failed\n");
                return -ENOMEM;
        }
        return 0;
index 6a9a3f2a0e8e3e7977483b0bfbb00dc19bc21496..b70ada0028d251d7171f13b0de7e9e47e1e6086c 100644 (file)
@@ -9,6 +9,8 @@
  * Version 2.  See the file COPYING for more details.
  */
 
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
 #include <linux/capability.h>
 #include <linux/mm.h>
 #include <linux/file.h>