Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp9420885rwb; Thu, 24 Nov 2022 12:39:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf4aVFNovq1h/I3vy53OsI/gLrBVOAJSkGzZ0yh5s6qZnV5MLb6ET8zg/b0M9vEfI46foi7+ X-Received: by 2002:aa7:cb8d:0:b0:467:bc1f:ca16 with SMTP id r13-20020aa7cb8d000000b00467bc1fca16mr32518583edt.269.1669322347012; Thu, 24 Nov 2022 12:39:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669322347; cv=none; d=google.com; s=arc-20160816; b=LNvVy5OqWJUITY3e1u9YhSI1grFld3H46j6VGByJsHdQ5Bvl0sNFFja9igUjLlWPbW vjsxeTQuD+3hbqCsD4yFjGg3lpkh2mgoRJ/Ci0M2TggIFPMeUpSZ1E/iJODbPbWNcQqW mmStHmPxAzUeN8M9HVRttjsMnwioo0b4TG6ljyiINZG3aAc3B4IAq0edqNZ4YLAm17gm 8+G8AFwmDGEObasU6QEzXQxYGRX1UK9+bdz/5iqW05DswUmvuvz6n3etgQN84Ff0VU8n EYaZuYFPPsinjnseOtrEGl7ysRtS+8TpWLnrffWbL2jfby9H25UBQIYfPGSMYwlUZGvm 5Plg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=kZRhQgUyKTejHhoVRsIy2ZCfjEDs8QLbpfGrSeyryLQ=; b=HjAYQw0tOHk0E3qDNQWlx+s0LTcV5QzyYYidqQCweLm/xCkMYqZ1BS2HVKfiFEDTeG 6P/jHyE61caihRMKh0og4Tp2Rm821h8u9cRR6zBXa0GuIC0x1WGtjyD72vG3alWNkxUc 5JvS5CPcoaVRkc8z7o4cmQFp0joVB/TbFKeL6D5NYcZG7NJK7/TNG0lYZNqbzenSk1Tf b2w3O1sj7qiTjXCKQznkVPHEjthnUw91E3PtQls45msVhlN8NzxKFbADHlUseyKCleV4 wx6IPzp1kLL+V+hcScphcD/ZUXurClhUIKDZS9POmy2UELkN9WilYYiGoJtj7se+X8Yq pHeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=OHv820+G; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=0ihy7vsD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sb29-20020a1709076d9d00b007adc8d6b77esi1045412ejc.308.2022.11.24.12.38.40; Thu, 24 Nov 2022 12:39:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=OHv820+G; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=0ihy7vsD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229500AbiKXU3r (ORCPT + 89 others); Thu, 24 Nov 2022 15:29:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229463AbiKXU3q (ORCPT ); Thu, 24 Nov 2022 15:29:46 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A0E3686AB for ; Thu, 24 Nov 2022 12:29:45 -0800 (PST) From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1669321783; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=kZRhQgUyKTejHhoVRsIy2ZCfjEDs8QLbpfGrSeyryLQ=; b=OHv820+G6yIaFPs0vCVP+/BxXBlJj4x0JbbCNKr6ARGqV88M/5zlcgRjgeNaAeZiFneKeQ 4sXLV9vKqsXYGyRK9eIMRjV5pAbXZrj7A5pKFFAaWJ1rYnDWjESyKk1Qx2yYrgk8ipy6aj ivWYhIkl+A4rYKS4+uX/wRj7ZbJHuJ3GVKOnEnOXhchKCPsWHC3xGEoJO3905WexIaxblY CuTE1gT5iDVyG8/4wWaf3+qoMjR9mWf+66NAUh1JiV+h9kI8B0/0KeghLgnAoz3delHv0c jBVVXs4iytCcbkvKvZ0YpubbOf3gqsyQOzRUuUdpyCWZMXfqRkC1gqF6IbK0PA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1669321783; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=kZRhQgUyKTejHhoVRsIy2ZCfjEDs8QLbpfGrSeyryLQ=; b=0ihy7vsD4gvm43dxriRZ0Ci2xlw9gH96Tdt3yFoNJd46C4nhHfhux1n+qJgZuRYTwx6nML uo33Y3w6u44vJnDg== To: Petr Mladek Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org Subject: Re: [PATCH printk v2 5/7] printk: Use struct console_buffers In-Reply-To: References: <20221123231400.614679-1-john.ogness@linutronix.de> <20221123231400.614679-6-john.ogness@linutronix.de> Date: Thu, 24 Nov 2022 21:35:33 +0106 Message-ID: <87r0xskseq.fsf@jogness.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,INVALID_DATE_TZ_ABSURD, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022-11-24, Petr Mladek wrote: > A better solution would be to remove DROPPED_TEXT_MAX completely > and pass the buffer size to call_console_driver(). And then call: call_cosole_driver(con, text, len, dropped_text, DROPPED_TEXT_MAX); Is that better? We do not want to pass the actual buffer size because the buffer is shared with the regular messages. Later in this series the dropped messages are handled in quite a different way, so maybe this mid-series solution is acceptable. But even by the end of this series DROPPED_TEXT_MAX still exists just to put a limit on the dropped messages length, even if more buffer space exists. John