summaryrefslogtreecommitdiff
path: root/include/ide.h
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2015-08-25 15:24:13 -0400
committerTom Rini <trini@konsulko.com>2016-01-13 16:33:20 -0500
commitd29892ba854f40980b84f86566cd0c2308c66afe (patch)
treeedf05478cea22b6754fcebbaf6b8ed4ef1467195 /include/ide.h
parent20e072f37402c17741f67d9693eaabdd835b80f2 (diff)
part_dos.c: Don't wrap to negative after 2G sectors
In order to support large IDE disks we need to make certain types be lbaint_t now. Reviewed-by: Tom Rini <trini@konsulko.com> Signed-off-by: Stefan Monnier <monnier@iro.umontreal.ca>
Diffstat (limited to 'include/ide.h')
-rw-r--r--include/ide.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/ide.h b/include/ide.h
index d5e05e97cb..f9b43cb23a 100644
--- a/include/ide.h
+++ b/include/ide.h
@@ -28,13 +28,13 @@ void ide_led(uchar led, uchar status);
#ifdef CONFIG_SYS_64BIT_LBA
typedef uint64_t lbaint_t;
-#define LBAF "%llx"
-#define LBAFU "%llu"
+#define LBAFlength "ll"
#else
typedef ulong lbaint_t;
-#define LBAF "%lx"
-#define LBAFU "%lu"
+#define LBAFlength "l"
#endif
+#define LBAF "%" LBAFlength "x"
+#define LBAFU "%" LBAFlength "u"
/*
* Function Prototypes