summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGabe Black <gabeblack@chromium.org>2012-10-12 14:26:06 +0000
committerTom Rini <trini@ti.com>2012-10-22 08:29:55 -0700
commit24a3fdd64d449c1acd4ccc3636f8bf02e903b6f8 (patch)
treeb92cd89caa0dd318696b3de25ae292ad568d0c88 /include
parent47444a27d2d8fb5c9f2799345278f935d453ab5d (diff)
downloadu-boot-imx-24a3fdd64d449c1acd4ccc3636f8bf02e903b6f8.zip
u-boot-imx-24a3fdd64d449c1acd4ccc3636f8bf02e903b6f8.tar.gz
u-boot-imx-24a3fdd64d449c1acd4ccc3636f8bf02e903b6f8.tar.bz2
ide: Add printf format string for CONFIG_SYS_64BIT_LBA option
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>
Diffstat (limited to 'include')
-rw-r--r--include/ide.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ide.h b/include/ide.h
index 695d08e..158e1be 100644
--- a/include/ide.h
+++ b/include/ide.h
@@ -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
/*