]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
disk/part_dos.c: Make use of LBAF for printing lbaint_t
authorTom Rini <trini@konsulko.com>
Wed, 2 Jul 2025 01:05:57 +0000 (19:05 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 10 Jul 2025 14:41:14 +0000 (08:41 -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.

Signed-off-by: Tom Rini <trini@konsulko.com>
disk/part_dos.c

index 5c77225cef93ca82b2f8e14897a80eeb427cb04e..18dd35c9b98e0095dc96583a9680a2fdc89fe31b 100644 (file)
@@ -421,7 +421,7 @@ int write_mbr_partitions(struct blk_desc *dev,
 
                /* write EBR */
                if (blk_dwrite(dev, ext_part_sect, 1, buffer) != 1) {
-                       printf("%s: failed writing 'EBR' (1 blks at 0x%lx)\n",
+                       printf("%s: failed writing 'EBR' (1 blks at 0x" LBAF ")\n",
                               __func__, ext_part_sect);
                        return -1;
                }