Explorar o código

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>
Gabe Black %!s(int64=12) %!d(string=hai) anos
pai
achega
24a3fdd64d
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      include/ide.h

+ 2 - 0
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
 
 /*