Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1539087ybk; Thu, 21 May 2020 09:12:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwe+suGphwKnz9aukgc93iCl749LYTuetZ3tYlrA+Qjv9TVw7b2vMIpPaVbLUql7VRVwhd1 X-Received: by 2002:a50:e70a:: with SMTP id a10mr7888437edn.38.1590077532310; Thu, 21 May 2020 09:12:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590077532; cv=none; d=google.com; s=arc-20160816; b=TKFkrRFceYFzoln2O23+juAuOPN8zFsTXYDl2rAhJmQDdk5FAl4AEdNSQxabAI0klX fg894T6aTe9BATDRhqeMikXf4Fu3Yr3Nx/sTkqGtB8rXWJ0tKolokYCWYG5RNjWFwYGi KT+j+PUto5q2lRxhNyh/GIniGx4OwlRhYFQa4WIKKR6O9+IpQWbEpfoumen96XMObTya 4nVx0wsaYDjWWTQUtHMZ60aMNCLjNK+6yYL7PqKQkf/AEN3G6RAUEKJCk4a0n9DS8tnk 1RqGs3EfmBiUnBAtEbQVmx4tyOrIwnr1QT6/XmQbWiQ+dfjJK7NB4kNZJuioQgpSCJxu gCEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=PKphoIrro+kw+TV7LfaTXJv8NgLWhzi1aMFmV79z3OU=; b=kKStPFuvY6zUJYQK/k4RJxWCPAWccNQYj+w7lj2YHGiA1aJPqBytpPXCBAAZC17wEd CKkT+QBuNCZnu1mzszvp3HtrfkS9/qvnIX8z1a9bTvjI9Wk8FlRnE2XE7UnyKSKIrzP5 jJfIPoU6OHXj57npTHhmJZA4Dra+G16LJ0b1ckaPK0ASEtx61SRnSKZu9Ux0jl4IWtVn uKtfUj3bPCcrYiUqjB0Gm0xugq9J+2TsjkyuuvMJEZHB8lXkwBfba6aYPBxtC6kHLeDK HolAGAmSX3ZgRQq8Q2tVesqHhLNikUhMppjdrEeUbvEtVjYgNsS3IkWQgtNSvi7dkqUs wKEg== 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 h11si3605934ejk.218.2020.05.21.09.11.48; Thu, 21 May 2020 09:12:12 -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 S1729855AbgEUQJp (ORCPT + 99 others); Thu, 21 May 2020 12:09:45 -0400 Received: from smtprelay0012.hostedemail.com ([216.40.44.12]:56624 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728517AbgEUQJo (ORCPT ); Thu, 21 May 2020 12:09:44 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay05.hostedemail.com (Postfix) with ESMTP id C19DC180143E1; Thu, 21 May 2020 16:09:43 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1539:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2693:2828:3138:3139:3140:3141:3142:3352:3622:3865:3867:3868:3871:3872:3873:4321:5007:6120:10004:10400:10848:11232:11658:11914:12297:12740:12760:12895:13069:13311:13357:13439:14659:21080:21324:21627:21939:30054:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: form95_5f0de8926d1f X-Filterd-Recvd-Size: 1701 Received: from XPS-9350.home (unknown [47.151.136.130]) (Authenticated sender: joe@perches.com) by omf15.hostedemail.com (Postfix) with ESMTPA; Thu, 21 May 2020 16:09:42 +0000 (UTC) Message-ID: Subject: Re: [RFC PATCH 2/2] init: Allow multi-line output of kernel command line From: Joe Perches To: Arvind Sankar Cc: Andrew Morton , Chenggang Wang , linux-kernel@vger.kernel.org, Petr Mladek , Sergey Senozhatsky , Steven Rostedt Date: Thu, 21 May 2020 09:09:38 -0700 In-Reply-To: <20200521155931.GA568639@rani.riverdale.lan> References: <2b3832fed9370f0f8dfd1ea33dddb1d05a36e265.1589916689.git.joe@perches.com> <20200521155931.GA568639@rani.riverdale.lan> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.36.1-2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2020-05-21 at 11:59 -0400, Arvind Sankar wrote: > On Tue, May 19, 2020 at 12:42:35PM -0700, Joe Perches wrote: > > ARM may have its longest possible command line larger than the longest > > possible printk. [] > I might be missing something, but this seems broken: probably, note the "untested" bit. > (1) If there is a ' ', the memchr will set pos to the ' ' the first time > through the inner loop, and then go into an infinite loop? You want > memrchr here but the kernel doesn't seem to have one. Right. I did look and didn't find one and didn't want to add it just for this use.