Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp11954417rwl; Tue, 3 Jan 2023 07:07:32 -0800 (PST) X-Google-Smtp-Source: AMrXdXvDRnghMsnAHlvOcdUZKdZ4PTZEzmGEO5j8ADqCrooJmCUbG+LXeF6rLig+pCELIhyQp9rO X-Received: by 2002:a05:6a21:32a1:b0:aa:6efd:1883 with SMTP id yt33-20020a056a2132a100b000aa6efd1883mr72541231pzb.37.1672758452601; Tue, 03 Jan 2023 07:07:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672758452; cv=none; d=google.com; s=arc-20160816; b=MeBPODvOWTH2TEbNYlRBtxRWTBB440MtD+PwzNpWhny3aZLCqNbGnDFfiulOUx9/ZH iUiGNqcqx1lMVOeEWYHpTMP8IavKtN2cM2efVYx3Jtj7TgNZaeMtA3x/6svooCmjCjUB qpJHT/987ps9GNqAYuxlHPdbT6+c4UmdyLmTi3EMKq9iYSbilpC8oY7d0/6Bwhoioqib l3+I5S4+MKjj0dLfmwhD7++cRDX5Icq4yO7osd0ljWaRSl2rps6Pv68kW0/HG4lrr9BG Eyv4sDJAH+asavBm43rQDQsMjcAxiIVV2AaBwVGPQ1WGqoQiARzT9Q0dCj9HNV1oDGd2 bx3w== 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=dyltWrd1W2nJE9Id3WrSJcwZcUPegvz9Nx4/qvQaUKE=; b=uKgZewEjMh6ZHR+W932hENv4+Wyd1/YizZnNulsoA7X1BPtWsTjT3jntp7Y41S5IjC PtUX0qNBwN1Jm5zgkGl5sxK3IE2lDVyR6kLOJa0MNu6YtS0vZWktPPyAHstbqJtL/Gbc 2j49sYaotuuouWxMJN7IKDcOKJ++fhN6Lpg2PyRyTuOtnMfT4o4A5tYShgxS0sQFwXO3 XOOwo6jHPKc57CNfn0L/nssdDDvXreho/WaNW6fm3WfSpFHK4hoxMQVlCfjTJ7jeS4X6 kp1JzUJIq8nJ9xDusAknCTfJbBxsWtRr0jKjznCWXZ7t88pLIj9ZrXyvQ/ZZMMvuH3zK 9L7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=gKIlYMmJ; dkim=neutral (no key) header.i=@linutronix.de header.b="/fesHhHE"; 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 j62-20020a638b41000000b00476f101ef48si33331787pge.7.2023.01.03.07.07.24; Tue, 03 Jan 2023 07:07:32 -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=gKIlYMmJ; dkim=neutral (no key) header.i=@linutronix.de header.b="/fesHhHE"; 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 S237937AbjACPAq (ORCPT + 60 others); Tue, 3 Jan 2023 10:00:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233299AbjACPAo (ORCPT ); Tue, 3 Jan 2023 10:00:44 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 966F6FCFF for ; Tue, 3 Jan 2023 07:00:43 -0800 (PST) From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1672758041; 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=dyltWrd1W2nJE9Id3WrSJcwZcUPegvz9Nx4/qvQaUKE=; b=gKIlYMmJ0h5R+bOquhiZc0nALMmjsbTlS09FDOBHOlqiqJSZmwUBTmoANwEDVL4urdY57t JvSgyvHmpet3/KyiOiesURWkwUoZGy00DQWEYjZ2fC3Mt1dXhjQ76XiXEsxJ144orWCjr/ Fe9iR/7je/T8WSVkoPu75tTkeOaCIYSzK2jTzIjMmFEv2YwMsm71wEhwdbJ7cma39NxyG4 b74mBF1jijdUtUkGadJ2lVc+6jppSCYmqgNCiuLBaR7k4P4w1UE4mrHtbaoJ5HwUFXjaSF yNEnybh0oJLbvog6Q0VTM4RRFNNW23OiWx681UdgNy4TyhrmCIm/wIRf6vmSEQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1672758041; 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=dyltWrd1W2nJE9Id3WrSJcwZcUPegvz9Nx4/qvQaUKE=; b=/fesHhHEMlax7Yj3qnd0g2fAvKxR7Z7ESKXIgRTO5JC6hGneokLFtfV6wx8UAQO+vKwhwz 75EGzgkoXEd61bBQ== To: Petr Mladek Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org Subject: Re: [PATCH printk v3 6/6] printk: introduce console_prepend_dropped() for dropped messages In-Reply-To: References: <20221221202704.857925-1-john.ogness@linutronix.de> <20221221202704.857925-7-john.ogness@linutronix.de> <87y1qjdimw.fsf@jogness.linutronix.de> <87o7rfd96w.fsf@jogness.linutronix.de> Date: Tue, 03 Jan 2023 16:06:03 +0106 Message-ID: <87fscrd5os.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 2023-01-03, Petr Mladek wrote: >> Actually, I would like to rename all of those limit macros to something >> that makes more sense for the new code base: >> >> CONSOLE_EXT_LOG_MAX -> CONSOLE_MESSAGE_MAX >> >> CONSOLE_LOG_MAX -> SYSLOG_MESSAGE_MAX > > Heh, we actually do not need this. The size of @scratchbuf > might be LOG_LINE_MAX/PRINTK_RECORD_MAX. The scratch buffer > is newly used only to read the plain message. The prefixes > are added to @outbuf. > >> LOG_LINE_MAX -> PRINTK_RECORD_MAX The scratch buffer would become PRINTK_RECORD_MAX, but we still need SYSLOG_MESSAGE_MAX for the kmalloc's syslog buffers. Unless you think it is OK to kmalloc 8KB instead of 1KB for the syslog calls. Then yes, we do not need SYSLOG_MESSAGE_MAX. John