mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Markus Elfring <Markus.Elfring@web.de>
To: Chad Aldreda <ca@modelmiser.com>, cocci@inria.fr
Cc: LKML <linux-kernel@vger.kernel.org>,
	Julia Lawall <Julia.Lawall@inria.fr>,
	Nicolas Palix <nicolas.palix@imag.fr>
Subject: Re: [PATCH] coccinelle: api: add a checker for device nodes in devm_ memory
Date: Sat, 7 Nov 2026 14:40:56 +0100	[thread overview]
Message-ID: <b5518744-4692-475c-8a78-9e6921a4fac8@web.de> (raw)
In-Reply-To: <20261106193517.3267013-2-ca@modelmiser.com>

…
> +    coccilib.report.print_report(p[0], "WARNING: devm_ memory registered at line %s as a device node or a v4l2_device; an open file outlives unbind" % q[0].line)
…

How do you think about to use formatted string literals instead?
https://docs.python.org/3/reference/lexical_analysis.html#f-strings

Regards,
Markus

  parent reply	other threads:[~2026-11-07 13:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-06 19:35 Chad Aldreda
2026-11-06 20:20 ` Julia Lawall
2026-11-06 21:07   ` Chad Aldreda
2026-11-07  9:10   ` [cocci] " Markus Elfring
2026-11-07 10:55 ` Markus Elfring
2026-11-07 13:40 ` Markus Elfring [this message]
2026-11-07 14:37 ` Markus Elfring

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=b5518744-4692-475c-8a78-9e6921a4fac8@web.de \
    --to=markus.elfring@web.de \
    --cc=Julia.Lawall@inria.fr \
    --cc=ca@modelmiser.com \
    --cc=cocci@inria.fr \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nicolas.palix@imag.fr \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®