From: "Rafael J. Wysocki" <rafael@kernel.org>
To: Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: linux-acpi@vger.kernel.org,
Stephen Rothwell <sfr@canb.auug.org.au>,
"Rafael J. Wysocki" <rjw@rjwysocki.net>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Linux Next Mailing List <linux-next@vger.kernel.org>
Subject: Re: [PATCH 1/1] ACPI: scan: Fix an error print in DisCo for Imaging support
Date: Tue, 21 Nov 2023 15:13:16 +0100 [thread overview]
Message-ID: <CAJZ5v0jgxVR9t604tC6LNOoD5Pv9vyhZNx=LiAcr4OR_C4_PcA@mail.gmail.com> (raw)
In-Reply-To: <20231121070826.1637628-1-sakari.ailus@linux.intel.com>
On Tue, Nov 21, 2023 at 9:33 AM Sakari Ailus
<sakari.ailus@linux.intel.com> wrote:
>
> The recently merged DisCo for Imaging support used a wrong printk
> specifier in printing a message. Fix it by using %zu instead of %lu.
> Also use "bits" instead of "bytes" as these are indeed bytes.
>
> Fixes: a6cb0a611273 ("ACPI: scan: Extract MIPI DisCo for Imaging data into swnodes")
> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
> ---
> drivers/acpi/mipi-disco-img.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/acpi/mipi-disco-img.c b/drivers/acpi/mipi-disco-img.c
> index cad72d1fc127..7286cf4579bc 100644
> --- a/drivers/acpi/mipi-disco-img.c
> +++ b/drivers/acpi/mipi-disco-img.c
> @@ -533,7 +533,7 @@ static void init_csi2_port(struct acpi_device *adev,
> if (ret < 0) {
> acpi_handle_debug(handle, "Lane polarity bytes missing\n");
> } else if (ret * BITS_PER_TYPE(u8) < num_lanes + 1) {
> - acpi_handle_info(handle, "Too few lane polarity bytes (%lu vs. %d)\n",
> + acpi_handle_info(handle, "Too few lane polarity bits (%zu vs. %d)\n",
> ret * BITS_PER_TYPE(u8), num_lanes + 1);
> } else {
> unsigned long mask = 0;
> --
Applied (with a slightly adjusted subject), thanks!
prev parent reply other threads:[~2023-11-21 14:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-21 7:08 [PATCH 1/1] ACPI: scan: Fix an error print in DisCo for Imaging support Sakari Ailus
2023-11-21 14:13 ` Rafael J. Wysocki [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='CAJZ5v0jgxVR9t604tC6LNOoD5Pv9vyhZNx=LiAcr4OR_C4_PcA@mail.gmail.com' \
--to=rafael@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=rjw@rjwysocki.net \
--cc=sakari.ailus@linux.intel.com \
--cc=sfr@canb.auug.org.au \
/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;
as well as URLs for NNTP newsgroup(s).