Skip to contentSkip to conversation

Enhance vsprintf to handle "ll" long long specifier

PATCH New Jerry Van Baren 2 participants 2 messages Oct 31, 2006 – Nov 2, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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>

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-Enhance-vsprintf-to-handle-ll-long-long-specifier-it-already-supported.txt
Url: http://lists.denx.de/pipermail/u-boot/attachments/20061031/9f52ba72/attachment.txt

#1 lore raw

PATCH 1/1 Enhance vsprintf to handle "ll" long long specifier

Quoted 10 lines · Jerry Van Baren

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>

Quoted 49 lines
Quoted 3 lines

From 9ec9c50b5e9acbc97bf7c7fc023328b231772065 Mon Sep 17 00:00:00 2001

From: Jerry Van Baren <[email protected]>
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).

---
 lib_generic/vsprintf.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
lib_generic/vsprintf.c +7 -1
index 2740f2e..034c619 100644
@@ -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&dat=121642

_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Signature · 4 lines
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
grant.likely at secretlab.ca
(403) 399-0195