Skip to content

Commit

Permalink
kexec: use file name as the output message prefix
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Dave Young <[email protected]>
Cc: "Eric W. Biederman" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Minfei Huang authored and torvalds committed Nov 7, 2015
1 parent 0f93090 commit de90a6b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions kernel/kexec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions kernel/kexec_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions kernel/kexec_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit de90a6b

Please sign in to comment.