Skip to content
Snippets Groups Projects
Commit 24a3fdd6 authored by Gabe Black's avatar Gabe Black Committed by Tom Rini
Browse files

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: default avatarGabe Black <gabeblack@chromium.org>
Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 47444a27
No related branches found
No related tags found
No related merge requests found
......@@ -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
/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment