From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: "Jan H. Schönherr" <schnhrr@cs.tu-berlin.de>
Cc: Kay Sievers <kay@vrfy.org>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] printk: drop ambiguous LOG_CONT flag
Date: Wed, 26 Sep 2012 14:15:26 -0700 [thread overview]
Message-ID: <20120926211526.GA30261@kroah.com> (raw)
In-Reply-To: <1348682325-8402-1-git-send-email-schnhrr@cs.tu-berlin.de>
On Wed, Sep 26, 2012 at 07:58:45PM +0200, Jan H. Schönherr wrote:
> From: Jan H. Schönherr <schnhrr@cs.tu-berlin.de>
>
> The meaning of LOG_CONT is unclear, i. e., whether a message is a starting,
> ending, or middle fragment. Unfortunately, this cannot be inferred from
> the LOG_PREFIX and LOG_NEWLINE flags, as they are not always kept.
> Furthermore, in some cases LOG_CONT is set, although it is unknown if
> there will be a continuation. This leads to wrongly concatenated output.
>
> Fix this by dropping LOG_CONT and rely on LOG_PREFIX and LOG_NEWLINE to
> distinguish the type of fragment. That is, if LOG_PREFIX is set, this
> fragment does not continue the previous fragment. And if LOG_NEWLINE is
> set, this fragment is not continued by the next fragment.
>
> (Unfortunately, we still have to look at the previous fragment to catch the
> case of an unset LOG_PREFIX on this fragment, but a set LOG_NEWLINE on
> the previous fragment.)
>
> Signed-off-by: Jan H. Schönherr <schnhrr@cs.tu-berlin.de>
> ---
> Against v3.6-rc7, only lightly tested.
Well, against linux-next and highly tested would be best. It's a bit
late to get this into linux-next for 3.7, how important is it really?
thanks,
greg k-h
next prev parent reply other threads:[~2012-09-26 21:15 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-26 17:58 [PATCH] printk: drop ambiguous LOG_CONT flag Jan H. Schönherr
2012-09-26 21:15 ` Greg Kroah-Hartman [this message]
2012-09-26 22:33 ` "Jan H. Schönherr"
2012-09-27 13:39 ` Kay Sievers
2012-09-27 15:46 ` "Jan H. Schönherr"
2012-09-27 16:04 ` "Jan H. Schönherr"
2012-09-28 8:25 ` Jan H. Schönherr
2012-09-28 14:34 ` Kay Sievers
2012-09-28 14:49 ` "Jan H. Schönherr"
2012-09-28 14:56 ` Kay Sievers
2012-10-08 19:24 ` Kay Sievers
2012-10-08 19:54 ` "Jan H. Schönherr"
2012-10-08 19:56 ` Kay Sievers
2012-11-02 3:53 ` Kay Sievers
2012-11-02 22:37 ` "Jan H. Schönherr"
2012-11-02 23:36 ` Greg Kroah-Hartman
2012-11-03 21:12 ` [PATCH resend] " Jan H. Schönherr
2012-11-10 18:47 ` "Jan H. Schönherr"
2012-10-08 23:10 ` [PATCH] " Joe Perches
2012-09-28 2:28 ` Kay Sievers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120926211526.GA30261@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=kay@vrfy.org \
--cc=linux-kernel@vger.kernel.org \
--cc=schnhrr@cs.tu-berlin.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.