All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/7] ide: Add printf format string for CONFIG_SYS_64BIT_LBA option
@ 2012-10-13  0:26 Simon Glass
  2012-10-13  0:26 ` [U-Boot] [PATCH 2/7] usb: Support the " Simon Glass
                   ` (6 more replies)
  0 siblings, 7 replies; 31+ messages in thread
From: Simon Glass @ 2012-10-13  0:26 UTC (permalink / raw)
  To: u-boot

From: Gabe Black <gabeblack@chromium.org>

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>
---
 include/ide.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/include/ide.h b/include/ide.h
index 385e909..18d63b2 100644
--- a/include/ide.h
+++ b/include/ide.h
@@ -42,8 +42,10 @@
 
 #ifdef CONFIG_SYS_64BIT_LBA
 typedef uint64_t lbaint_t;
+#define LBAF "%llx"
 #else
 typedef ulong lbaint_t;
+#define LBAF "%lx"
 #endif
 
 /*
-- 
1.7.7.3

^ permalink raw reply related	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2012-11-07 16:18 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-13  0:26 [U-Boot] [PATCH 1/7] ide: Add printf format string for CONFIG_SYS_64BIT_LBA option Simon Glass
2012-10-13  0:26 ` [U-Boot] [PATCH 2/7] usb: Support the " Simon Glass
2012-10-13  2:01   ` Marek Vasut
2012-10-13  0:26 ` [U-Boot] [PATCH 3/7] disk: Make the disk partition code work with no specific partition types Simon Glass
2012-10-13  0:26 ` [U-Boot] [PATCH 4/7] disk: Address cast and format errors Simon Glass
2012-10-13  0:26 ` [U-Boot] [PATCH 5/7] disk: Allow alternate EFI partition signature Simon Glass
2012-10-15 15:19   ` Stephen Warren
2012-10-15 17:17     ` Stefan Reinauer
2012-10-16 17:58       ` Stephen Warren
2012-10-17 23:36   ` Tom Rini
2012-10-17 23:39     ` Stefan Reinauer
2012-10-17 23:49       ` Simon Glass
2012-10-13  0:26 ` [U-Boot] [PATCH 6/7] fs: Add a Coreboot Filesystem (CBFS) driver and commands Simon Glass
2012-10-22 15:22   ` Tom Rini
2012-10-31 22:28     ` Simon Glass
2012-10-31 22:41   ` Wolfgang Denk
2012-11-01  1:22     ` Tom Rini
2012-11-02  2:23       ` Simon Glass
2012-11-03 15:04         ` Wolfgang Denk
2012-11-03 21:11           ` Simon Glass
2012-11-05 22:19             ` Simon Glass
2012-11-06  7:27               ` Wolfgang Denk
2012-11-06 22:13                 ` Simon Glass
2012-11-06 22:23                   ` Wolfgang Denk
2012-11-06 22:35                     ` Simon Glass
2012-11-07 12:38                       ` Wolfgang Denk
2012-11-07 16:18                         ` Simon Glass
2012-10-13  0:26 ` [U-Boot] [PATCH 7/7] config: Enable CBFS, ext4 for coreboot Simon Glass
2012-10-22 20:38   ` Tom Rini
2012-10-23  5:36     ` Simon Glass
2012-10-22 21:05 ` [U-Boot] [PATCH 1/7] ide: Add printf format string for CONFIG_SYS_64BIT_LBA option Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.