projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3903bf9
)
init/main.c: log init process file name
author
Paul Menzel
<
[email protected]
>
Wed, 22 Aug 2018 04:58:37 +0000
(21:58 -0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 22 Aug 2018 17:52:49 +0000
(10:52 -0700)
Add a log message to `run_init_process()`.
This log message serves two purposes.
1. If the init process is not specified on the Linux Kernel command
line, the user sees, what file was chosen.
2. The time stamps shows exactly, when the Linux kernel handed over
control to the init process.
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Paul Menzel <
[email protected]
>
Reviewed-by: Andrew Morton <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
init/main.c
patch
|
blob
|
history
diff --git
a/init/main.c
b/init/main.c
index 3a6ce89e128f93c398848f651de6853578e58358..18f8f0140fa0351691b45f1152e64ee1b10e3f24 100644
(file)
--- a/
init/main.c
+++ b/
init/main.c
@@
-1002,6
+1002,7
@@
void __init load_default_modules(void)
static int run_init_process(const char *init_filename)
{
argv_init[0] = init_filename;
+ pr_info("Run %s as init process\n", init_filename);
return do_execve(getname_kernel(init_filename),
(const char __user *const __user *)argv_init,
(const char __user *const __user *)envp_init);