Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp247115rdb; Thu, 18 Jan 2024 02:15:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IF/Wx8ltW4HGqHt9gfJFk43ROpaukY+SSLQVYTcamAGvItE87i7tZeTcFpuGpbC8MLdU6zS X-Received: by 2002:a17:906:e06:b0:a2a:d44a:cada with SMTP id l6-20020a1709060e0600b00a2ad44acadamr327919eji.129.1705572909522; Thu, 18 Jan 2024 02:15:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705572909; cv=pass; d=google.com; s=arc-20160816; b=XNXulebUGHe6g4Fcl/nuSIRuEtZS3MrRdDRGFwJkh88SR3CJWzYvZGA9raRxXWeBJF 1KZnhkRjniA8+77fxO+fNuwZXYq/LGomdmx/Mo5ZgMUi8qxh6lask9SJaezMk1oUgocf Dg6y/kaO9oZNV+9YRyy79LxgBpdXjrbtR6PraDOgQsUgd1BCsww2A0sUYJo+FnubzZj1 5JojfKaqmTlLn9CgQrTjbL+Uca1h1JVHJm18zAeY9j4ZAnuEC+Pi8lHfLOHvW5lf/nKQ 8c2oqHLw63JoIYfngwzvVKj3Bc108DAUn2su7ckHQdJeRyM5emzaJQV5KKQSejzTNcjR iLkQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=JzaKwCLLcrV0lAUYdlCr9JKsNWWBaBuoPxIK1F3gv1E=; fh=rAtFb7FMM1117miPZYRMSLZ4Fk292stW6jaZ123NBoA=; b=07nAWnJ6FoQxXxVvZ55NU52glGlotuE9Evu3SnWIvb9l4/XtuHLVBwo5Lhs6zrQ7xH am/aHJbka0+4+YEJ8xkUE3OzzkjoSnhCCEQRl2Z8nzG+b2v+v07yUixycDQMQyLlEehZ OEkx0wViJx0Q+B83BBD+KaBP0BwmhhXaOhafggvci6SLVmk471r5gDcNaTTuSTU0vsjX B0m+Jszy2Q8x1VQ4X3VZo+uITdGEAtbQSvtAXwNIKrwFnKX5rjUBtryAeji6bsZfZC8/ mEBNAfzILhXy5iDE0FzsHZZX8+MVlf8/XrI+L1VpI1ygkuJ8KFUKcHoztC/NonjmDnY5 L1+w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=00BPwWzh; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-30001-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30001-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id g22-20020a170906349600b00a2b2a49f202si6647337ejb.918.2024.01.18.02.15.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 02:15:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30001-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=00BPwWzh; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-30001-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30001-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 44C851F2391B for ; Thu, 18 Jan 2024 10:15:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ABC5A208AD; Thu, 18 Jan 2024 10:15:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="00BPwWzh"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="OhyBShu3" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A4D0720B01; Thu, 18 Jan 2024 10:14:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705572899; cv=none; b=qthGXFc7mAum8KuWrzxpu3vHss9kLQccuDchEni1H1Alf/F9Pb+teMmFxh+CTMMF8HMgMlhLG0tdCuZjH/M8vLQc8px8uq+0/l/aS8rMthhLrBPiL/a2m8py8fcHnJTM6uPmEsdeM7Cw4xkqEJj1ejKVqoumcQP/65H2k9MmYtY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705572899; c=relaxed/simple; bh=khhLqmve9Id0BgYdRyMNy+0ycxyLazuWpvl/uJGui2g=; h=From:DKIM-Signature:DKIM-Signature:To:Cc:Subject:In-Reply-To: References:Date:Message-ID:MIME-Version:Content-Type; b=lXHqzDSTDHYCWL7K1MqxBVfdaJFKq5BAEwresor8mArEmJe4mnu0cIpbeRpNTAdXysTVGkQkZCe0DeCDZSZpZsWsOtHdH5VM/du4aQBMi2cwWxoHryYKiCGyHcloKMegXfwx0b5LTw178wCdRt0Z2k4U+CExrlIIAqi8PE1h3oA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=00BPwWzh; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=OhyBShu3; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1705572895; 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=JzaKwCLLcrV0lAUYdlCr9JKsNWWBaBuoPxIK1F3gv1E=; b=00BPwWzhkm3L0MmROW6y6HEAbXbRET4sA0iC4Ai+lQv/jzdbl6G34U8dq8Pn3jZs273ZCv jRfhj0P6znPdKYDQrSt5Zif98zDwD9BrD9lXcwdg339ojVdSCOb59sbOlq06APX/HVDr60 kZ8easq3iyu0BHyPy+ap7CceMr/hLd5ZhgWTb4s9M99CECwPoYgCVPNoe2CICOeUuMtnOR l5MBvzUU0UNhDcO1sw5VNYvczARNX7wfenFF+zfmJzH1RKD1GhDahNZp+Q2OYSbM9b+l6h enBYTToQzEtWNsNxJegZOXJaUhuaJ1bghnjr9dhUTMfz9F2gfMnnzHwKC5LDlQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1705572895; 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=JzaKwCLLcrV0lAUYdlCr9JKsNWWBaBuoPxIK1F3gv1E=; b=OhyBShu3/6Q8I7chxynESX5SoYFTFP7rL4vBWYHnn8kw6OFW3gCs8YvDfD25+ChfzGY85O AQlsAppiMfXfY+Bw== To: Sreenath Vijayan , corbet@lwn.net, gregkh@linuxfoundation.org, jirislaby@kernel.org, rdunlap@infradead.org, pmladek@suse.com Cc: rostedt@goodmis.org, senozhatsky@chromium.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, taichi.shimoyashiki@sony.com, daniel.palmer@sony.com, anandakumar.balasubramaniam@sony.com, sreenath.vijayan@sony.com Subject: Re: [PATCH v3 1/2] printk: Add function to dump printk buffer directly to consoles In-Reply-To: <87le8nas4f.fsf@jogness.linutronix.de> References: <402f0cbc3a573503c7cc794113aa5137ed7f276c.1705331453.git.sreenath.vijayan@sony.com> <87le8nas4f.fsf@jogness.linutronix.de> Date: Thu, 18 Jan 2024 11:20:54 +0106 Message-ID: <87fryvaqxt.fsf@jogness.linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Oops, for the current mainline code it is actually even simpler because the console_unlock() will perform the flushing: void dump_printk_buffer(void) { console_lock(); console_rewind_all(); console_unlock(); } John