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)
committerChanho Park <chanho61.park@samsung.com>
Fri, 24 Jul 2015 07:29:50 +0000 (16:29 +0900)
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 8ecc9dd3a53d49a4c6f5227a120ea591e55f752e..28e4b42be7054c8e376303ad58400eff1335c30d 100644 (file)
 
 #ifdef CONFIG_SYS_64BIT_LBA
 typedef uint64_t lbaint_t;
+#define LBAF "%llx"
 #else
 typedef ulong lbaint_t;
+#define LBAF "%lx"
 #endif
 
 /*