[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250520165024.7447a107@sal.lan>
Date: Tue, 20 May 2025 16:50:24 +0200
From: Mauro Carvalho Chehab <mchehab+huawei@...nel.org>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Cc: Jonathan Corbet <corbet@....net>, Akira Yokosawa <akiyks@...il.com>,
Nicolas Schier <nicolas.schier@...ux.dev>, Randy Dunlap
<rdunlap@...radead.org>, Stephen Rothwell <sfr@...b.auug.org.au>, Kees Cook
<kees@...nel.org>, linux-doc@...r.kernel.org, linux-kbuild@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 3/4] docs: kerneldoc.py: add try/except blocks for
kernel-doc class errors
Em Tue, 20 May 2025 17:22:27 +0300
Andy Shevchenko <andriy.shevchenko@...ux.intel.com> escreveu:
> On Tue, May 20, 2025 at 03:33:08PM +0200, Mauro Carvalho Chehab wrote:
> > Replicate the same behavior as what's done with kernel-doc.pl:
> > continue building docs even when there are exceptions.
>
> ...
>
> > + logger.warning("kernel-doc '%s' processing failed with: %s" %
> > + (cmd_str(cmd), str(e)))
>
> > + logger.warning("kernel-doc '%s' processing failed with: %s" %
> > + (cmd_str(cmd), str(e)))
>
> The prefix of the message is the same for different (semantically) places.
> Is it okay? (I would expect them to slightly differ, but I dunno if
> cmd here is the same, perhaps that's enough for distinguishing the two.)
I guess it should be OK, as the "%s" variables are the ones that will
actually help to provide a hint about the issue. See, in practice, if
one wants to check what crashed, the procedure would likely be to run
the command line, given by "cmd_str(cmd)" and see what output was produced.
Regards,
Mauro
Powered by blists - more mailing lists