From d29892ba854f40980b84f86566cd0c2308c66afe Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Tue, 25 Aug 2015 15:24:13 -0400 Subject: 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 Signed-off-by: Stefan Monnier --- include/ide.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/ide.h') diff --git a/include/ide.h b/include/ide.h index d5e05e97cb2..f9b43cb23a6 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 -- cgit v1.2.3