lkml.org 
[lkml]   [2020]   [Oct]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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

\
 
 \ /
  Last update: 2020-10-07 18:30    [W:0.369 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site