From patchwork Sat Oct 13 00:26:06 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [U-Boot, 1/7] ide: Add printf format string for CONFIG_SYS_64BIT_LBA option Date: Fri, 12 Oct 2012 14:26:06 -0000 From: Simon Glass X-Patchwork-Id: 191266 Message-Id: <1350087972-1581-1-git-send-email-sjg@chromium.org> To: U-Boot Mailing List Cc: Tom Rini From: Gabe Black 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 Signed-off-by: Simon Glass --- 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 /*