From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751096AbdIEMfn (ORCPT ); Tue, 5 Sep 2017 08:35:43 -0400 Received: from www262.sakura.ne.jp ([202.181.97.72]:50278 "EHLO www262.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750808AbdIEMfl (ORCPT ); Tue, 5 Sep 2017 08:35:41 -0400 To: pmladek@suse.com, sergey.senozhatsky.work@gmail.com Cc: joe@perches.com, rostedt@goodmis.org, torvalds@linux-foundation.org, pavel@ucw.cz, sergey.senozhatsky@gmail.com, jack@suse.cz, akpm@linux-foundation.org, jslaby@suse.com, andi@lisas.de, linux-kernel@vger.kernel.org Subject: Re: printk: what is going on with additional newlines? From: Tetsuo Handa References: <1504060296.2786.8.camel@perches.com> <20170830024703.GA17175@jagdpanzerIV.localdomain> <20170905094452.GE8741@pathway.suse.cz> <20170905095900.GC2066@jagdpanzerIV.localdomain> <20170905122154.GG8741@pathway.suse.cz> In-Reply-To: <20170905122154.GG8741@pathway.suse.cz> Message-Id: <201709052135.BJH73984.QLMOJFFOtFOSHV@I-love.SAKURA.ne.jp> X-Mailer: Winbiff [Version 2.51 PL2] X-Accept-Language: ja,en,zh Date: Tue, 5 Sep 2017 21:35:38 +0900 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Petr Mladek wrote: > Some of these problems would be solved by a custom buffer. > But you are right. There are less guarantees that it would > get flushed or that it can be found in case of troubles. > Now, I am not sure that it is a good idea to use it even > for a single continuous line. > > I wonder if all this is worth the effort, complexity, and risk. > We are talking about cosmetic problems after all. > > Well, what do you think about the extra printed information? > For example: > > message > > It looks straightforward to me. These information > might be helpful on its own. So, it might be a > win-win solution. Yes, if buffering multiple lines will not be implemented, I do want printk context identifier field for each line. I think part will be something like TASK#pid (if outside interrupt) or CPU#cpunum/#irqlevel (if inside interrupt).