mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +03:00
common/avb_verify.c: Make use of LBAF for printing lbaint_t
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. 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-2-trini@konsulko.com Signed-off-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
This commit is contained in:
@@ -320,7 +320,7 @@ static unsigned long mmc_read_and_flush(struct mmc_part *part,
|
||||
}
|
||||
if ((start + sectors) > (part->info.start + part->info.size)) {
|
||||
sectors = part->info.start + part->info.size - start;
|
||||
printf("%s: read sector aligned to partition bounds (%ld)\n",
|
||||
printf("%s: read sector aligned to partition bounds (" LBAF ")\n",
|
||||
__func__, sectors);
|
||||
}
|
||||
|
||||
@@ -363,7 +363,7 @@ static unsigned long mmc_write(struct mmc_part *part, lbaint_t start,
|
||||
}
|
||||
if ((start + sectors) > (part->info.start + part->info.size)) {
|
||||
sectors = part->info.start + part->info.size - start;
|
||||
printf("%s: sector aligned to partition bounds (%ld)\n",
|
||||
printf("%s: sector aligned to partition bounds (" LBAF ")\n",
|
||||
__func__, sectors);
|
||||
}
|
||||
if (unaligned) {
|
||||
|
||||
Reference in New Issue
Block a user