From: Gabe Black <gabebl...@chromium.org> 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 <gabebl...@chromium.org> Signed-off-by: Simon Glass <s...@chromium.org> --- include/ide.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/ide.h b/include/ide.h index 385e909..18d63b2 100644 --- a/include/ide.h +++ b/include/ide.h @@ -42,8 +42,10 @@ #ifdef CONFIG_SYS_64BIT_LBA typedef uint64_t lbaint_t; +#define LBAF "%llx" #else typedef ulong lbaint_t; +#define LBAF "%lx" #endif /* -- 1.7.7.3 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot