From: sashiko-bot@kernel.org
To: "Eliav Farber" <farbere@amazon.com>
Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, robh@kernel.org
Subject: Re: [PATCH v4 2/8] irqchip/al-fic: use %pOF and raise init log level
Date: Thu, 08 Oct 2026 09:09:06 +0000 [thread overview]
Message-ID: <sashiko-outbox-163895@kernel.org> (raw)
In-Reply-To: <20261008090058.38591-3-farbere@amazon.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] irqchip/al-fic: format string mismatch for PTR_ERR() error code
--
commit 8125021c81e1add1a1eecad3b85a1e6e742d6f48
Author: Eliav Farber <farbere@amazon.com>
irqchip/al-fic: use %pOF and raise init log level
This commit updates the driver's log messages to use %pOF, identifying FIC
instances by their full devicetree paths rather than bare node names. It also
fixes a grammar typo and raises the successful-initialization message log
level from debug to info.
> diff --git a/drivers/irqchip/irq-al-fic.c b/drivers/irqchip/irq-al-fic.c
> index 35581332b40e0..760bd08dcff4d 100644
> --- a/drivers/irqchip/irq-al-fic.c
> +++ b/drivers/irqchip/irq-al-fic.c
[ ... ]
> @@ -258,9 +257,8 @@ static int __init al_fic_init_dt(struct device_node *node,
> node->name,
> parent_irq);
> if (IS_ERR(fic)) {
> - pr_err("%s: fail to initialize irqchip (%lu)\n",
> - node->name,
> - PTR_ERR(fic));
> + pr_err("%pOF: fail to initialize irqchip (%lu)\n",
> + node, PTR_ERR(fic));
[Severity: Low]
Does this leave a format string mismatch for the PTR_ERR() return value?
Since PTR_ERR() returns a signed long error code, using the unsigned %lu format
specifier causes negative error codes to underflow and be displayed as massive
positive numbers (e.g., 18446744073709551594).
Would it be better to use %pe or %ld here so that the actual error value
remains legible if al_fic_wire_init() fails?
> ret = PTR_ERR(fic);
> goto err_irq_dispose;
> }
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261008090058.38591-1-farbere@amazon.com?part=2
next prev parent reply other threads:[~2026-10-08 9:09 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-08 9:00 [PATCH v4 0/8] irqchip/al-fic: shared parent IRQ, error/fatal outputs and affinity Eliav Farber
2026-10-08 9:00 ` [PATCH v4 1/8] irqchip/al-fic: fix argument alignment and a repeated word Eliav Farber
2026-10-08 9:00 ` [PATCH v4 2/8] irqchip/al-fic: use %pOF and raise init log level Eliav Farber
2026-10-08 9:09 ` sashiko-bot [this message]
2026-10-08 9:00 ` [PATCH v4 3/8] irqchip/al-fic: keep the device_node instead of a cached name string Eliav Farber
2026-10-10 15:33 ` Radu Rendec
2026-10-10 18:28 ` Farber, Eliav
2026-10-08 9:00 ` [PATCH v4 4/8] irqchip/al-fic: switch to shared parent interrupt Eliav Farber
2026-10-10 17:19 ` Radu Rendec
2026-10-08 9:00 ` [PATCH v4 5/8] dt-bindings: interrupt-controller: amazon,al-fic: add mask selection Eliav Farber
2026-10-08 9:00 ` [PATCH v4 6/8] irqchip/al-fic: support error and fatal outputs and FIC v2 Eliav Farber
2026-10-10 17:43 ` Radu Rendec
2026-10-08 9:00 ` [PATCH v4 7/8] irqchip/al-fic: add support for FIC v3 Eliav Farber
2026-10-08 9:00 ` [PATCH v4 8/8] irqchip/al-fic: add irq_set_affinity callback Eliav Farber
2026-10-08 9:13 ` sashiko-bot
2026-10-10 19:52 ` Thomas Gleixner
2026-10-11 5:01 ` Farber, Eliav
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=sashiko-outbox-163895@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=farbere@amazon.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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.