mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-15 06:55:17 -04:00
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>
This commit is contained in:
parent
47444a27d2
commit
24a3fdd64d
@ -43,8 +43,10 @@ extern ulong ide_bus_offset[];
|
|||||||
|
|
||||||
#ifdef CONFIG_SYS_64BIT_LBA
|
#ifdef CONFIG_SYS_64BIT_LBA
|
||||||
typedef uint64_t lbaint_t;
|
typedef uint64_t lbaint_t;
|
||||||
|
#define LBAF "%llx"
|
||||||
#else
|
#else
|
||||||
typedef ulong lbaint_t;
|
typedef ulong lbaint_t;
|
||||||
|
#define LBAF "%lx"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user