All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dan Carpenter <error27@gmail.com>
To: "Omar Yiğitcan Mengü" <menguomary@gmail.com>
Cc: Viresh Kumar <vireshk@kernel.org>,
	Johan Hovold <johan@kernel.org>, Alex Elder <elder@kernel.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	greybus-dev@lists.linaro.org, linux-staging@lists.linux.dev
Subject: Re: [PATCH v2] staging: greybus: bootrom: fix firmware size endianness in debug log
Date: Sat, 5 Dec 2026 14:27:23 +0300	[thread overview]
Message-ID: <axP1G5oHNZeY6JiE@stanley.mountain> (raw)
In-Reply-To: <20261204182526.414-1-menguomary@gmail.com>

On Fri, Dec 04, 2026 at 09:25:25PM +0300, Omar Yiğitcan Mengü wrote:
> In gb_bootrom_firmware_size_request(), size_response->size is a __le32
> field populated with cpu_to_le32(bootrom->fw->size). Printing
> size_response->size directly with %u outputs a byte-swapped value on
> big-endian hosts.
> 
> Print bootrom->fw->size directly with %zu instead so the logged size is
> always in host byte order.

When you're writing this commit message the only thing that matters in
what you've changed is the s/size_response->size/bootrom->fw->size/.
The change from %u to %zu is really sort of an unnecessary detail to
mention and reviewers maybe will see that instead of the important bits.

I guess where the line is, if reviewers are going to ask about why you
made an unrelated change then you have to explain it.  But if it's so
trivial like this it's better to not add it to the commit message so it
stays focused.

But it's fine.

Reviewed-by: Dan Carpenter <error27@gmail.com>

regards,
dan carpenter



      reply	other threads:[~2026-12-05 11:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 18:25 [PATCH v2] staging: greybus: bootrom: fix firmware size endianness in debug log Omar Yiğitcan Mengü
2026-12-05 11:27 ` Dan Carpenter [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=axP1G5oHNZeY6JiE@stanley.mountain \
    --to=error27@gmail.com \
    --cc=elder@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=greybus-dev@lists.linaro.org \
    --cc=johan@kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=menguomary@gmail.com \
    --cc=vireshk@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 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.