[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <hnysi7a375k5qlud6d6pirqxvvv4bapkdxypknw4oj7ahzjowf@2cwflngr2dyw>
Date: Tue, 9 Dec 2025 17:14:40 -0500
From: Aaron Tomlin <atomlin@...mlin.com>
To: Greg KH <gregkh@...uxfoundation.org>
Cc: Lance Yang <lance.yang@...ux.dev>, sean@...e.io,
linux-kernel@...r.kernel.org, mhiramat@...nel.org, akpm@...ux-foundation.org,
Petr Mladek <pmladek@...e.com>
Subject: Re: [PATCH 1/2] hung_task: Consolidate hung task warning into an
atomic log block
On Tue, Dec 09, 2025 at 03:56:58PM +0900, Greg KH wrote:
> > "%s\n" forces an unconditional newline, causing a spurious blank line when
> > the flag isn't set, right?
>
> The first \n should not be there, this should be all one line.
Hi Greg,
I agree. This will be resolved in a subsequent patch.
> If you have multiple lines wanting to be printed, use multiple pr_err()
> calls.
Unfortunately, sequential pr_err() calls risk having their lines separated
by other log messages, rendering the warning incoherent. The single-call
implementation is necessary to ensure the entire message is atomically
written.
Kind regards,
--
Aaron Tomlin
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists