]> git.sur5r.net Git - u-boot/commitdiff
ide: Add printf format string for CONFIG_SYS_64BIT_LBA option
authorGabe Black <gabeblack@chromium.org>
Fri, 12 Oct 2012 14:26:06 +0000 (14:26 +0000)
committerTom Rini <trini@ti.com>
Mon, 22 Oct 2012 15:29:55 +0000 (08:29 -0700)
The size of an LBA type changes depending on this option. We need to
use a different printf() string in each case, so create a define for
this.

Signed-off-by: Gabe Black <gabeblack@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
include/ide.h

index 695d08eeccf1accdd8934d83ce07e778e85fb877..158e1beaf9510385353dde29dfbf33c7665125d5 100644 (file)
@@ -43,8 +43,10 @@ extern ulong ide_bus_offset[];
 
 #ifdef CONFIG_SYS_64BIT_LBA
 typedef uint64_t lbaint_t;
+#define LBAF "%llx"
 #else
 typedef ulong lbaint_t;
+#define LBAF "%lx"
 #endif
 
 /*