From 24a3fdd64d449c1acd4ccc3636f8bf02e903b6f8 Mon Sep 17 00:00:00 2001
From: Gabe Black <gabeblack@chromium.org>
Date: Fri, 12 Oct 2012 14:26:06 +0000
Subject: [PATCH] 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>
---
 include/ide.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/ide.h b/include/ide.h
index 695d08eeccf..158e1beaf95 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
 
 /*
-- 
GitLab