[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 4/6] fix console setting from cmdline
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 4/6] fix console setting from cmdline |
Date: |
Sat, 27 Aug 2022 21:06:07 +0200 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
Luca Dariz, le sam. 05 févr. 2022 18:51:27 +0100, a ecrit:
> The leading space prevents it working if console=comX is the only
> argument, so handle this case separately.
>
> Signed-off-by: Luca Dariz <luca@orpolo.org>
Applied, thanks!
> ---
> i386/i386at/com.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/i386/i386at/com.c b/i386/i386at/com.c
> index 3402a025..fb291b87 100644
> --- a/i386/i386at/com.c
> +++ b/i386/i386at/com.c
> @@ -189,6 +189,11 @@ comcnprobe(struct consdev *cp)
> if (console)
> mach_atoi(console + strlen(CONSOLE_PARAMETER), &rcline);
>
> + if (strncmp(kernel_cmdline, CONSOLE_PARAMETER + 1,
> + strlen(CONSOLE_PARAMETER) - 1) == 0)
> + mach_atoi(kernel_cmdline + strlen(CONSOLE_PARAMETER) - 1,
> + &rcline);
> +
> maj = 0;
> unit = -1;
> pri = CN_DEAD;
> --
> 2.30.2
>
>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH 4/6] fix console setting from cmdline,
Samuel Thibault <=