summaryrefslogtreecommitdiff
path: root/disk
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-02-16 23:21:36 -0500
committerWolfgang Denk <wd@denx.de>2009-03-20 22:39:09 +0100
commit6c6166f52983dac775e3852f9d0f49d033f27108 (patch)
tree38a782d4c9d928c5fef02b40dd0675e215596ea2 /disk
parenta43ea5cc6d612471fbc74f0a26b2bea5864aa1d6 (diff)
downloadu-boot-imx-6c6166f52983dac775e3852f9d0f49d033f27108.zip
u-boot-imx-6c6166f52983dac775e3852f9d0f49d033f27108.tar.gz
u-boot-imx-6c6166f52983dac775e3852f9d0f49d033f27108.tar.bz2
vsprintf: pull updates from Linux kernel
This brings in support for the %p modifier which allows us to easily print out things like ip addresses, mac addresses, and pointers. It also converts the rarely used 'q' length modifier to the common 'L' modifier when dealing with quad types. While this new code is a bit larger (~1k .text), most of it should be made up by converting the existing ip/mac address code to use format modifiers. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'disk')
-rw-r--r--disk/part.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/disk/part.c b/disk/part.c
index e353cee..fdc49d3 100644
--- a/disk/part.c
+++ b/disk/part.c
@@ -184,7 +184,7 @@ void dev_print (block_dev_desc_t *dev_desc)
printf (" Supports 48-bit addressing\n");
#endif
#if defined(CONFIG_SYS_64BIT_LBA) && defined(CONFIG_SYS_64BIT_VSPRINTF)
- printf (" Capacity: %ld.%ld MB = %ld.%ld GB (%qd x %ld)\n",
+ printf (" Capacity: %ld.%ld MB = %ld.%ld GB (%Ld x %ld)\n",
mb_quot, mb_rem,
gb_quot, gb_rem,
lba,