[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201007162942.GA440@jagdpanzerIV.localdomain>
Date: Thu, 8 Oct 2020 01:29:42 +0900
From: Sergey Senozhatsky <sergey.senozhatsky@...il.com>
To: Guenter Roeck <linux@...ck-us.net>
Cc: Sergey Senozhatsky <sergey.senozhatsky@...il.com>,
Petr Mladek <pmladek@...e.com>,
Shreyas Joshi <shreyas.joshi@...mp.com>, rostedt@...dmis.org,
shreyasjoshi15@...il.com, linux-kernel@...r.kernel.org,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Linus Torvalds <torvalds@...ux-foundation.org>
Subject: Re: [PATCH] printk: handle blank console arguments passed in.
On (20/10/07 08:57), Guenter Roeck wrote:
> On 10/7/20 5:30 AM, Sergey Senozhatsky wrote:
[..]
> I can see to options: Link /dev/console to /dev/null if there is no console,
> or do something like
>
> if (IS_ERR(file)) {
> pr_warn("Warning: unable to open an initial console.\n");
> file = filp_open("/dev/null", O_RDWR, 0);
> if (IS_ERR(file))
> return;
> }
As far as I can tell, /dev/null does not exist yet on this stage
(at least not in my system). But generally the idea looks interesting.
-ss
Powered by blists - more mailing lists