[U-Boot-Users] [PATCH] Enhance vsprintf to handle "ll" long long specifier

Enhance vsprintf to handle "ll" long long specifier (it already supported the deprecated "q" specifier).
Git repository: http://www.cideas.us/cgi-bin/gitweb.cgi?p=u-boot/u-boot-of-cmd.git;a=summary
Branch: vsprintf-ll http://www.cideas.us/cgi-bin/gitweb.cgi?p=u-boot/u-boot-of-cmd.git;a=shortlog;h=vsprintf-ll
Signed-off-by: Jerry Van Baren vanbaren@cideas.com
From 9ec9c50b5e9acbc97bf7c7fc023328b231772065 Mon Sep 17 00:00:00 2001
From: Jerry Van Baren vanbaren@cideas.com Date: Mon, 30 Oct 2006 19:55:32 -0500 Subject: [PATCH] Enhance vsprintf to handle "ll" long long specifier (it already supported the deprecated "q" specifier).
Signed-off-by: Jerry Van Baren vanbaren@cideas.com --- lib_generic/vsprintf.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/lib_generic/vsprintf.c b/lib_generic/vsprintf.c index 2740f2e..034c619 100644 --- a/lib_generic/vsprintf.c +++ b/lib_generic/vsprintf.c @@ -256,6 +256,13 @@ #endif if (*fmt == 'h' || *fmt == 'l' || *fmt == 'q') { qualifier = *fmt; ++fmt; +#ifdef CFG_64BIT_VSPRINTF + /* parse ll (64 bit) and change to 'q' */ + if (*fmt == 'l') { + qualifier = 'q'; + ++fmt; + } +#endif }
/* default base */

On 10/31/06, Jerry Van Baren gerald.vanbaren@smiths-aerospace.com wrote:
Enhance vsprintf to handle "ll" long long specifier (it already supported the deprecated "q" specifier).
Git repository: http://www.cideas.us/cgi-bin/gitweb.cgi?p=u-boot/u-boot-of-cmd.git;a=summary
Branch: vsprintf-ll http://www.cideas.us/cgi-bin/gitweb.cgi?p=u-boot/u-boot-of-cmd.git;a=shortlog;h=vsprintf-ll
Signed-off-by: Jerry Van Baren vanbaren@cideas.com
Acked-by: Grant Likely grant.likely@secretlab.ca
From 9ec9c50b5e9acbc97bf7c7fc023328b231772065 Mon Sep 17 00:00:00 2001
From: Jerry Van Baren vanbaren@cideas.com Date: Mon, 30 Oct 2006 19:55:32 -0500 Subject: [PATCH] Enhance vsprintf to handle "ll" long long specifier (it already supported the deprecated "q" specifier).
Signed-off-by: Jerry Van Baren vanbaren@cideas.com
lib_generic/vsprintf.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/lib_generic/vsprintf.c b/lib_generic/vsprintf.c index 2740f2e..034c619 100644 --- a/lib_generic/vsprintf.c +++ b/lib_generic/vsprintf.c @@ -256,6 +256,13 @@ #endif if (*fmt == 'h' || *fmt == 'l' || *fmt == 'q') { qualifier = *fmt; ++fmt; +#ifdef CFG_64BIT_VSPRINTF
/* parse ll (64 bit) and change to 'q' */
if (*fmt == 'l') {
qualifier = 'q';
++fmt;
}
+#endif }
/* default base */
-- 1.4.1.1
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&da...
U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
participants (2)
-
Grant Likely
-
Jerry Van Baren