Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2936010pxb; Tue, 12 Oct 2021 17:03:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAh7PwJUAC37Tu0R8X1lCIszAFnRthg9hLwMzTxatCfvK4DoB/TuKnkzn79YdatsJGUS1/ X-Received: by 2002:a62:1d08:0:b0:44c:6f89:85ef with SMTP id d8-20020a621d08000000b0044c6f8985efmr34691681pfd.42.1634083400281; Tue, 12 Oct 2021 17:03:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634083400; cv=none; d=google.com; s=arc-20160816; b=yJpiTjVEHkn+ML56oCCSts/6yQCw+aCTXOAp6j9ay5+FqIV/WU+BJX+HVujkvHKVld IAF57WNAZ1y+cYNz/fZmoSWTuCqupvDIXNwbXDqsF2kt7G2IeKh3jD/K/YujXgJ7xiJ7 VDytM3t9B8NtUCg+RfVDhyFouOzaPv2qCqPVkMTIwJ+oyEvW1n5phGJceYRUXesJlAzJ iIND9AOgoBKXw46T7sNcPN0hhYtwFzD8N+JyqZhaK7ZYsKDsaxFOmQrp7tE/ari0Qycl FkggP2JOaKT4HjgmCyOQCuB6N6tmqS/dBhDBYXXeRXku6LQj5xajbAcefYnmBaicoIlt JxaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=dToZhy7r92UC0r5+iUH3E8O4IRORYENUWa3nQA8GURo=; b=FXcvLM1K52BJle2wjkLRFJ4uuqCIDG56JzcOgDImd2+z3XBW//Q7NZpLWdLk29j9Rq W1tEAGFL5H/jiyR7U4Nvdmfdl7TpIlS7jjY5RQQvQ6BNDpwGQFymw20HB0UR5oRhIIIt dCRrYBSn9f3i1lASDE082Mn9ZcpK2i5mOb0k9FOfXNyAJRcXfSifM0eAcTPgb7PEqFFN Bcg4H1PE45oomKJOWlrFCoFBf5P6iTd4dgbNZEa0KLihdujI9F3cTdc+x+SMZX4d38xb p1gCXpoVAviAnkg7vKdI0itypKRmw+B2wIYVSxr51CgGmKA90FkranyRIcr5NkKfF4G6 Ib/g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j8si20475148plh.134.2021.10.12.17.03.05; Tue, 12 Oct 2021 17:03:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233903AbhJMADM (ORCPT + 99 others); Tue, 12 Oct 2021 20:03:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:55742 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232243AbhJMADL (ORCPT ); Tue, 12 Oct 2021 20:03:11 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F156E60EDF; Wed, 13 Oct 2021 00:01:08 +0000 (UTC) Date: Tue, 12 Oct 2021 20:01:06 -0400 From: Steven Rostedt To: Andrew Halaney Cc: akpm@linux-foundation.org, bp@suse.de, linux-kernel@vger.kernel.org Subject: Re: [PATCH] init: Make unknown command line param message clearer Message-ID: <20211012200106.1afdbb0b@gandalf.local.home> In-Reply-To: <20211012213523.39801-1-ahalaney@redhat.com> References: <20211012213523.39801-1-ahalaney@redhat.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 12 Oct 2021 16:35:23 -0500 Andrew Halaney wrote: > --- a/init/main.c > +++ b/init/main.c > @@ -925,6 +925,10 @@ static void __init print_unknown_bootoptions(void) > for (p = &envp_init[2]; *p; p++) > end += sprintf(end, " %s", *p); > > + pr_notice("The kernel command line has unknown parameters. They are either\n"); > + pr_notice("misspelled, not valid for the current kernel configuration,\n"); > + pr_notice("or are meant for init but are not after the '--' delineator. They will\n"); > + pr_notice("be passed to init along with those after '--' on the command line.\n"); > pr_notice("Unknown command line parameters:%s\n", unknown_options); > memblock_free(unknown_options, len); What about just changing it to simply say: pr_notice("Unknown kernel command line parameters "%s", will be passed to user space.\n", unknown_options); -- Steve