[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9a9246c417587f17009543f8048d5f9b7a2ed68f.camel@perches.com>
Date: Sun, 11 Apr 2021 14:08:14 -0700
From: Joe Perches <joe@...ches.com>
To: John Ogness <john.ogness@...utronix.de>,
Alexander Monakov <amonakov@...ras.ru>
Cc: Paul Menzel <pmenzel@...gen.mpg.de>,
Joerg Roedel <jroedel@...e.de>,
Suravee Suthikulpanit <suravee.suthikulpanit@....com>,
iommu@...ts.linux-foundation.org,
LKML <linux-kernel@...r.kernel.org>,
Petr Mladek <pmladek@...e.com>,
Sergey Senozhatsky <senozhatsky@...omium.org>,
Steven Rostedt <rostedt@...dmis.org>
Subject: Re: [PATCH] iommu/amd: Fix extended features logging
On Sun, 2021-04-11 at 21:52 +0200, John Ogness wrote:
> I'd rather fix dev_info callers to allow pr_cont and then fix any code
> that is using this workaround.
Assuming you mean all dev_<level>() uses, me too.
> And if the print maintainers agree it is OK to encourage
> pr_cont(LOGLEVEL "...") usage, then people should really start using
> that if the loglevel on those pieces is important.
I have no stong feeling about the use of pr_cont(<KERN_LEVEL>
as valuable or not. I think it's just a trivial bit that
could be somewhat useful when interleaving occurs.
A somewhat better mechanism would be to have an explicit
cookie use like:
cookie = printk_multipart_init(KERN_LEVEL, fmt, ...);
while (<condition>)
printk_multipart_cont(cookie, fmt, ...);
printk_multipark_end(cookie, fmt, ...);
And separately, there should be a pr_debug_cont or equivalent.
Powered by blists - more mailing lists