From: Mattijs Korpershoek <mkorpershoek@kernel.org>
To: Tom Rini <trini@konsulko.com>, u-boot@lists.denx.de
Cc: Mattijs Korpershoek <mkorpershoek@kernel.org>,
Igor Opaniuk <igor.opaniuk@gmail.com>,
Sam Protsenko <semen.protsenko@linaro.org>
Subject: Re: [PATCH 1/2] boot/android_ab.c: Make use of LBAF for printing lbaint_t
Date: Wed, 02 Jul 2025 12:27:36 +0200 [thread overview]
Message-ID: <87cyaiubtz.fsf@kernel.org> (raw)
In-Reply-To: <20250702010603.19354-1-trini@konsulko.com>
Hi Tom,
Thank you for the patch.
On Tue, Jul 01, 2025 at 19:06, Tom Rini <trini@konsulko.com> wrote:
> When printing the contents of an lbaint_t variable we need to use LBAF
> to print it in order to get the correct format type depending on 32 or
> 64bit-ness. Furthermore, printed message should not be split as that
> makes finding them harder, so bring this back to a single line.
>
> Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
> ---
> Cc: Mattijs Korpershoek <mkorpershoek@kernel.org>
> Cc: Igor Opaniuk <igor.opaniuk@gmail.com>
> Cc: Sam Protsenko <semen.protsenko@linaro.org>
> ---
> boot/android_ab.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/boot/android_ab.c b/boot/android_ab.c
> index a287eac04fe8..13e82dbcb7fe 100644
> --- a/boot/android_ab.c
> +++ b/boot/android_ab.c
> @@ -101,8 +101,7 @@ static int ab_control_create_from_disk(struct blk_desc *dev_desc,
> abc_blocks = DIV_ROUND_UP(sizeof(struct bootloader_control),
> part_info->blksz);
> if (abc_offset + abc_blocks > part_info->size) {
> - log_err("ANDROID: boot control partition too small. Need at");
> - log_err(" least %lu blocks but have %lu blocks.\n",
> + log_err("ANDROID: boot control partition too small. Need at least %lu blocks but have " LBAF " blocks.\n",
> abc_offset + abc_blocks, part_info->size);
> return -EINVAL;
> }
> --
> 2.43.0
next prev parent reply other threads:[~2025-07-02 10:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-02 1:06 [PATCH 1/2] boot/android_ab.c: Make use of LBAF for printing lbaint_t Tom Rini
2025-07-02 1:06 ` [PATCH 2/2] common/avb_verify.c: " Tom Rini
2025-07-02 10:29 ` Mattijs Korpershoek
2025-07-03 16:01 ` Sam Protsenko
2025-07-02 10:27 ` Mattijs Korpershoek [this message]
2025-07-03 16:00 ` [PATCH 1/2] boot/android_ab.c: " Sam Protsenko
2025-07-09 8:03 ` Mattijs Korpershoek
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=87cyaiubtz.fsf@kernel.org \
--to=mkorpershoek@kernel.org \
--cc=igor.opaniuk@gmail.com \
--cc=semen.protsenko@linaro.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/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