mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Farber, Eliav" <farbere@amazon.com>
To: Radu Rendec <radu@rendec.net>, Thomas Gleixner <tglx@kernel.org>,
	"Antoine Tenart" <atenart@kernel.org>
Cc: "linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: RE: [PATCH 4/4] irqchip/alpine-msi: Add debug logging for MSI allocation
Date: Sat, 24 Oct 2026 19:33:57 +0000	[thread overview]
Message-ID: <BY3PR18MB47221A1FD4F6674E206DDEF1C6632@BY3PR18MB4722.namprd18.prod.outlook.com> (raw)
In-Reply-To: <d413238a3c5533572013d1fb27142345aabdd101.camel@rendec.net>

On Sat, 2026-10-24 at 14:47 -0400, Radu Rendec wrote:
> On Wed, 2026-09-23 at 08:37 +0000, Eliav Farber wrote:
>> Add log messages to help follow the driver flow when debugging: an
>> info message on successful initialisation, and debug messages on the
>> MSI interrupt allocation and free paths.

[...]

>> +    pr_info("initialized successfully, spi %d to %d\n",
>> +            priv->spi_first, priv->spi_first + priv->num_spis - 1);
>> +
>>      retain_and_null_ptr(priv);
>>      retain_and_null_ptr(msi_map);
>>      return 0;
>
> Not that this matters in reality (because all these numbers are "small")
> but for the sake of correctness: all the variables you added messages
> for are unsigned, so you should use %u on them.

Thanks for the review. Fixed in v2: all the new messages use %u.

> Since you're cleaning up this driver, you may want to look at the other
> prints. For example, the existing pr_debug() in alpine_msix_init() has
> the same problem.

Fixed in a separate patch in v2, which also corrects the wording of that
message. The other prints in the driver are pr_err() calls without any
arguments, so nothing else needed changing.

Thanks,
Eliav

      reply	other threads:[~2026-10-24 19:34 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-23  8:36 [PATCH 0/4] irqchip/alpine-msi: Cleanups and debug logging Eliav Farber
2026-09-23  8:37 ` [PATCH 1/4] irqchip/alpine-msi: Use SPDX-License-Identifier Eliav Farber
2026-10-24 18:05   ` Radu Rendec
2026-09-23  8:37 ` [PATCH 2/4] irqchip/alpine-msi: Drop redundant asm/msi.h include Eliav Farber
2026-10-24 18:20   ` Radu Rendec
2026-09-23  8:37 ` [PATCH 3/4] irqchip/alpine-msi: Add missing space after comma in GENMASK_ULL Eliav Farber
2026-10-24 18:21   ` Radu Rendec
2026-09-23  8:37 ` [PATCH 4/4] irqchip/alpine-msi: Add debug logging for MSI allocation Eliav Farber
2026-10-24 18:47   ` Radu Rendec
2026-10-24 19:33     ` Farber, Eliav [this message]

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=BY3PR18MB47221A1FD4F6674E206DDEF1C6632@BY3PR18MB4722.namprd18.prod.outlook.com \
    --to=farbere@amazon.com \
    --cc=atenart@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=radu@rendec.net \
    --cc=tglx@kernel.org \
    /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®