Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp1054824rwl; Thu, 5 Jan 2023 08:06:52 -0800 (PST) X-Google-Smtp-Source: AMrXdXuL5o+fQsNBLEFjo2pda77JSzh9BabwEeIhdDNKv0JFQRfhnT2ExyyzWYeUqwN5s8m8A8dO X-Received: by 2002:a17:907:6f13:b0:819:2756:e090 with SMTP id sy19-20020a1709076f1300b008192756e090mr42637999ejc.50.1672934812251; Thu, 05 Jan 2023 08:06:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672934812; cv=none; d=google.com; s=arc-20160816; b=B3PIEDgqjsd70nMH4Xp98tZ577PK74j8Li9tK4ZxO41E01dqg1ROzATF1imNpguTiP xAcdgV7gDguFd/ICEcagCcH/rEOE8JsyPpecjQ+H7gOMZanGASoRZtcAv8dedBJNNx2T sEINclBDtAc7f+VvAdRiM8beEkjnuOzyyqO5hdkbvFg+rzpVy9Jptw4r5QaV5P5N8HG1 387e4No5lk85xgeP6D0OEYVczuWYcC/FCE0kqnL4HvdxilY2W1XxP0xqOnlF9QumfrUU lZb5IPDA1cLn1KY2yx/7XgmgRKS6ARYJt3tSH6xtJDNTA7Tdz0nkBxlJjlg97/7GkTjF AKKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=xfrORDfvm8dpVWP5sSxy2OZz9uDQdnuBwf+Vi39bO2I=; b=y2UrTSRvwVj2RbG9GbIBKNEv3rbUpF3yrjf0Zxk7rv3oQDXXPYuGKvdsaGNXhW0jLv s1cGilmqtEE9GdIf2sMJDKK/snwDCJO4enxE5eJ0MDNVUDPg0qOZabpoxpWpwFhl3Miq hpBEWn8QBqgZda1j9KoYRe/vVgG72t98WKce5ljDX5m247Oy4szAZEZS3i4ThDW8BnIo 1CF948Do7ujmJm3dlgREMRsTnbZC1oOG1+9aE6jbouFoTKUTR5FldrKy+aDAWnhBZ0gy P62BseMLUudTX/IkjLe402gM+pRMbRkcO5M6b2UxhXdfATeWypt5obrB07CMQbMLRGb6 rnlg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nd11-20020a170907628b00b0084ca065e9f4si17124052ejc.568.2023.01.05.08.06.39; Thu, 05 Jan 2023 08:06:52 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233607AbjAEPGk (ORCPT + 55 others); Thu, 5 Jan 2023 10:06:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231978AbjAEPGV (ORCPT ); Thu, 5 Jan 2023 10:06:21 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 077584A941 for ; Thu, 5 Jan 2023 07:06:21 -0800 (PST) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id A2B8817403; Thu, 5 Jan 2023 15:06:01 +0000 (UTC) Received: from suse.cz (unknown [10.100.201.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 6D6772C142; Thu, 5 Jan 2023 15:06:01 +0000 (UTC) Date: Thu, 5 Jan 2023 16:06:01 +0100 From: Petr Mladek To: John Ogness Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org Subject: Re: [PATCH printk v4 4/8] printk: introduce struct printk_buffers Message-ID: References: <20230105103735.880956-1-john.ogness@linutronix.de> <20230105103735.880956-5-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230105103735.880956-5-john.ogness@linutronix.de> X-Spam-Level: X-Spamd-Bar: / Authentication-Results: smtp-out1.suse.de; none X-Rspamd-Server: rspamd2 X-Spamd-Result: default: False [0.00 / 50.00] X-Spam-Score: 0.00 X-Rspamd-Queue-Id: A2B8817403 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,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 Thu 2023-01-05 11:43:31, John Ogness wrote: > Introduce a new struct printk_buffers to contain all the buffers > needed to read and format a printk message for output. Putting the > buffers inside a struct reduces the number of buffer pointers that > need to be tracked. Also, it allows usage of the sizeof() macro for > the buffer sizes, rather than expecting certain sized buffers being > passed in. > > Note that since the output buffer for normal consoles is now > CONSOLE_EXT_LOG_MAX instead of CONSOLE_LOG_MAX, multi-line > messages that may have been previously truncated will now be > printed in full. This should be considered a feature and not a bug > since the CONSOLE_LOG_MAX restriction was about limiting static > buffer usage rather than limiting printed text. > > Signed-off-by: John Ogness Reviewed-by: Petr Mladek Best Regards, Petr