]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/blob - rt-patches/0030-printk-Add-force_early_printk-boot-param-to-help-wit.patch
Fix memguard and related syscalls
[hercules2020/nv-tegra/linux-4.4.git] / rt-patches / 0030-printk-Add-force_early_printk-boot-param-to-help-wit.patch
1 From b8ce6b3c2bb4c54a9488eaed224ae4380d142e97 Mon Sep 17 00:00:00 2001
2 From: Peter Zijlstra <peterz@infradead.org>
3 Date: Fri, 2 Sep 2011 14:41:29 +0200
4 Subject: [PATCH 030/366] printk: Add "force_early_printk" boot param to help
5  with debugging
6
7 Gives me an option to screw printk and actually see what the machine
8 says.
9
10 Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
11 Link: http://lkml.kernel.org/r/1314967289.1301.11.camel@twins
12 Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
13 Link: http://lkml.kernel.org/n/tip-ykb97nsfmobq44xketrxs977@git.kernel.org
14 ---
15  kernel/printk/printk.c | 7 +++++++
16  1 file changed, 7 insertions(+)
17
18 diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
19 index d6f2e2a..1bc8365 100644
20 --- a/kernel/printk/printk.c
21 +++ b/kernel/printk/printk.c
22 @@ -1723,6 +1723,13 @@ asmlinkage void early_printk(const char *fmt, ...)
23   */
24  static bool __read_mostly printk_killswitch;
25  
26 +static int __init force_early_printk_setup(char *str)
27 +{
28 +       printk_killswitch = true;
29 +       return 0;
30 +}
31 +early_param("force_early_printk", force_early_printk_setup);
32 +
33  void printk_kill(void)
34  {
35         printk_killswitch = true;
36 -- 
37 1.9.1
38