]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
boot/android_ab.c: Make use of LBAF for printing lbaint_t
authorTom Rini <trini@konsulko.com>
Wed, 2 Jul 2025 01:06:02 +0000 (19:06 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 16 Jul 2025 16:56:28 +0000 (10:56 -0600)
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: Sam Protsenko <semen.protsenko@linaro.org>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
Link: https://lore.kernel.org/r/20250702010603.19354-1-trini@konsulko.com
Signed-off-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
boot/android_ab.c

index a287eac04fe88ad08bdcf1b1b1d6e564d503d800..13e82dbcb7feb14f0ae18bb3cac6280ec65abd58 100644 (file)
@@ -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;
        }