Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1095131ybk; Wed, 20 May 2020 21:34:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrbHdrgG7oueetv1eeGL7tQYBmMahxgtyjZzPp9srATOfnm0/zKthxmopwFXCNmzgz8VEy X-Received: by 2002:a17:906:3952:: with SMTP id g18mr1890883eje.191.1590035650353; Wed, 20 May 2020 21:34:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590035650; cv=none; d=google.com; s=arc-20160816; b=dc2/uLi2Nvsyx1TWN6RoIWVyn5GZpD60TGSzBSaCwgRFlSRmTM2pomNxUL4XVJ5Xwp sm4biPOxpzE3xtnR1m1CUbRWyz//zsXaWpxvRs4IhbbmHvZ3Ygbe4RdsZx/wsOVkgUxf SDcq7BBsp5mWaW5LAP7NFN3ac/FvlEvdiVPPsgYYReBD/ORPeaSccfJJTq5s+hRCO2Qj MgGFbdmKy4PEovTz9BMz9XIhjfjcuhU2FZPCyOT3fr4MnbaexrywXniO/5Zoay2CysnO sv1myJjuZit31msHC0630Fjp5kNCOX26uvO1jVKAgCtlYmZOlxbbx5yUoesnBBmjCwKX m8XQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date:from :dkim-signature; bh=giyDZYsddXSLGh0PmNhF6czurjr/9oMLKVT7TwPE9rk=; b=U/PWmbIpiE4Kn0BR9b0q5kbhezPnP9ZWR0Ygp+1m2MAEcdny/OxqG2An0yC4pT+ofy Z4gCBvFPGWRqgeGJ4WDRqSu1m0f93Ussm+pOjo6KRuAmzKIZrE5zxWt4WahjOO624BHL wuUAe+uhljSpm4RzMoZi4M4+aPXJMDglSsdgJqZsgqYYfFoIXxKTyg4hhw68Ol2dyF4z q28mwfy2bOU0AKC8XVZVRdCPXrlKtW9mHtCP3WL6QsSFKCspnUzbYXl8B2grKuihMlfc wX6xYg+84G6jtXkHBzeWc0AxZIcZz+LcULapwWhKutAe4UAfS+1Cmgd5BwW9iVs2epkw fYZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hifECBLB; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b17si2428933edt.100.2020.05.20.21.33.47; Wed, 20 May 2020 21:34:10 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hifECBLB; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727023AbgEUEcO (ORCPT + 99 others); Thu, 21 May 2020 00:32:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726282AbgEUEcO (ORCPT ); Thu, 21 May 2020 00:32:14 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6283EC061A0E for ; Wed, 20 May 2020 21:32:13 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id f4so2514822pgi.10 for ; Wed, 20 May 2020 21:32:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=giyDZYsddXSLGh0PmNhF6czurjr/9oMLKVT7TwPE9rk=; b=hifECBLBaMj3032ovwzd6ETRWcP8zXJ9m0vOgUPqo7KH+SQdyNKYCH3Rdav8W+/HeQ i0DDwnSnacUgylo0zWlnEC3Uo5FwtTCK2yqEwuvma8/S0bxLIjpji/3Iat2EN7usThHY KGLXpPpYFd3WVkKwwTo4x+X0McNteYH2NKywKHBMyr/PD7t/NUtVDNNComrUwusYNnC6 QeME+duaPCiYbsqp8+65DY2ufAS9eiB7xvH5IgJrmv7LvNqQjmGkLpm0N4/DVbeSqxHN 8pnjZ4F8+vDo8picSFa5Knd8n2LNq4Ro+nC15xXeYNmM9HPE1NylAECyDgu4CzhM1Cjn 6tVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=giyDZYsddXSLGh0PmNhF6czurjr/9oMLKVT7TwPE9rk=; b=Jd5aSQGqWyK+J34/44b+FvZ1jVKu4f+qKcMa7WTZCCLHeAkgpPQ8wD1yy4ZrsGHHtJ t720TRs9Rhnq7Cp6dWPofOqpKeXRRW2yX5Dw1er9HJ3Tc9J+4syA58JecSMAamKIOE/3 8iSCGWYT0i3Ak0iXtOdEa7Q7EztRagMQUwEplVVan85Ergidt0xB8QguksojzCzgkEJ0 /eHlDVps1hZ9g2dl3IoBacDiXpE3H9M7sRIwhYWGVCKLzOFXRhJs8T+oV0bffs/y0jn7 9AZgOe1ttrXjAwCtbZFgcdZFxjZWc1ci+yycHVZCRDqv7h5Of+GY87oaTJgWb8lD2oCh cB6g== X-Gm-Message-State: AOAM532MF1AbW/L3KgrVe5mnCfewfU6pMqBhi+WK1xHXQyCnj+Q/D+WY 0gu4MUaYJOvYrCBKQx8bgZdGGKfQ X-Received: by 2002:a63:b64e:: with SMTP id v14mr7344574pgt.164.1590035532794; Wed, 20 May 2020 21:32:12 -0700 (PDT) Received: from localhost ([2409:10:2e40:5100:6e29:95ff:fe2d:8f34]) by smtp.gmail.com with ESMTPSA id h17sm3374947pfr.25.2020.05.20.21.32.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 May 2020 21:32:12 -0700 (PDT) From: Sergey Senozhatsky X-Google-Original-From: Sergey Senozhatsky Date: Thu, 21 May 2020 13:32:09 +0900 To: Joe Perches Cc: Sergey Senozhatsky , Andrew Morton , Chenggang Wang , linux-kernel@vger.kernel.org, Petr Mladek , Steven Rostedt Subject: Re: [RFC PATCH 2/2] init: Allow multi-line output of kernel command line Message-ID: <20200521043209.GA755@jagdpanzerIV.localdomain> References: <2b3832fed9370f0f8dfd1ea33dddb1d05a36e265.1589916689.git.joe@perches.com> <20200520044127.GB938@jagdpanzerIV.localdomain> <20200520121000.GF520@jagdpanzerIV.localdomain> <19a8c717f8d9dc76f2b09e6dd19f3fbb71bf29c5.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <19a8c717f8d9dc76f2b09e6dd19f3fbb71bf29c5.camel@perches.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (20/05/20 13:36), Joe Perches wrote: > > We can split command line in a loop - memchr(pos, ' ') - and > > pr_cont() parts of the command line. pr_cont() has overflow > > control and it flushes cont buffer before it overflows, so > > we should not lose anything. > > It doesn't matter much here, but I believe > there's an 8k max buffer for pr_cont output. > > include/linux/printk.h:#define CONSOLE_EXT_LOG_MAX 8192 This is for extended payload - the key:value dictionaries which device core appends to normal printk() messages. We don't have that many consoles that handle extended output (netcon and, maybe, a few more). -ss