Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2950833pxb; Tue, 12 Oct 2021 17:24:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwoIXxvg+wECBcav9FUS+ITWht5lvBr+o9cHWswdhTgP7tP0JjXPXr+Xvjb+bgeHHlO6unf X-Received: by 2002:a63:e551:: with SMTP id z17mr24280068pgj.203.1634084644709; Tue, 12 Oct 2021 17:24:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634084644; cv=none; d=google.com; s=arc-20160816; b=Pwrvs0HKLkSySO190FwW8vgQlAzv8kAdy2jbRruuf4NGdkS3wDNqtKGmLDrDpD7DgV 4Li1DkeOHgGWOELKJVrc8ek/3FFVaTrBql4cF5um8Htu4L8Lzt0qd5cY6YgtLBnDAQwf WhwkjUZGSPoLcHbqVFDnBk6QoyoFHgGXFhK79R8MW05G/4IMrvxJ7GAziuf+mFjbJ+sf 0VUsXwb5AeRtiuCL5dyqHUp8De1AHVFV5ax96qrnbEu4CZI1JH2yjBn2LddDdFSTTh9m KfLSgULoZv7iNo5MeMGqbayLdmqULKAsvs9OLeAhCTZWpCBAi8i5SoatqOJOIY2SYh7G SUsQ== 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=Vu+ir7MWfsfC4KnqFT9tKSVCPpWtKR5llUaL6PSuoBQ=; b=pqpry9jig1awcvsmDdSfOE+dP0PMx71Gt7RkuEYE5eF2HtI8IDdwZKDeZPPFZu0x7I 96a/nK3d0/EUu7d7CTr3ILseJTRKCaI7E7+6xxKzD+IPRo/CngSbdeEARGN7mvIJbVj/ jRGLzZobHhzSYWeFSg82WBRHbm5xTwW/YXro+Fg2+hQhs7Mqmky8fOao6d2C0U5fjVZ6 Kh5dWZzBCucZ/c+u0cIlfcpC2XYEN0WIGKZ0oXsiVLpeDkT1HGsPTE6T05PReqFSZ99R W4yrSzn5Mz4PnMwiVy2kmDZ2kGMdmLFhigFB1PQCXm41Ng1+pB4D7VuPzfFfpYDu0R8W S1SA== 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 b5si11630072pgl.28.2021.10.12.17.23.50; Tue, 12 Oct 2021 17:24:04 -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 S234252AbhJMAY4 (ORCPT + 99 others); Tue, 12 Oct 2021 20:24:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:33070 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233128AbhJMAYy (ORCPT ); Tue, 12 Oct 2021 20:24:54 -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 2B37560BD3; Wed, 13 Oct 2021 00:22:51 +0000 (UTC) Date: Tue, 12 Oct 2021 20:22:50 -0400 From: Steven Rostedt To: Randy Dunlap Cc: Andrew Halaney , 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: <20211012202250.54a8db49@gandalf.local.home> In-Reply-To: <87853d4f-d6f8-1d58-1a07-c8232dae87fd@infradead.org> References: <20211012213523.39801-1-ahalaney@redhat.com> <20211012200106.1afdbb0b@gandalf.local.home> <87853d4f-d6f8-1d58-1a07-c8232dae87fd@infradead.org> 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 17:18:32 -0700 Randy Dunlap wrote: > On 10/12/21 5:01 PM, Steven Rostedt wrote: > > 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); > > > > Yes, that's much more palatable. Thanks. Andrew (Halaney, not Morton), Feel free to send a v2 with the above text, and just add: Suggested-by: Steven Rostedt (VMware) -- Steve