summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-10-15 04:38:35 -0600
committerTom Rini <trini@ti.com>2014-10-27 11:04:01 -0400
commitc6da9ae8a4895ad31a8ff4e3bf3728fd7d0fd535 (patch)
tree4604c0d442e1bbfa08f8e70202f45f307805a46b /include
parent6bf6725962ad2d79178c860801ff99f8495b3f44 (diff)
downloadu-boot-imx-c6da9ae8a4895ad31a8ff4e3bf3728fd7d0fd535.zip
u-boot-imx-c6da9ae8a4895ad31a8ff4e3bf3728fd7d0fd535.tar.gz
u-boot-imx-c6da9ae8a4895ad31a8ff4e3bf3728fd7d0fd535.tar.bz2
Tidy up data sizes and function comment in display_options
Use inttypes.h and uint64_t to correct the code so that it will not issue warnings on 64-bit machines where 'uint64_t' is 'unsigned long'. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/common.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/include/common.h b/include/common.h
index 6213511..ecf7fca 100644
--- a/include/common.h
+++ b/include/common.h
@@ -253,7 +253,19 @@ int cpu_init(void);
/* */
phys_size_t initdram (int);
int display_options (void);
-void print_size(unsigned long long, const char *);
+
+/**
+ * print_size() - Print a size with a suffic
+ *
+ * print sizes as "xxx KiB", "xxx.y KiB", "xxx MiB", "xxx.y MiB",
+ * xxx GiB, xxx.y GiB, etc as needed; allow for optional trailing string
+ * (like "\n")
+ *
+ * @size: Size to print
+ * @suffix String to print after the size
+ */
+void print_size(uint64_t size, const char *suffix);
+
int print_buffer(ulong addr, const void *data, uint width, uint count,
uint linelen);