You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/02/04 00:07:02 UTC
incubator-mynewt-larva git commit: baselibc *printf - allow two long
'l' specifiers.
Repository: incubator-mynewt-larva
Updated Branches:
refs/heads/master fec9e23e4 -> 9c7b7fcdd
baselibc *printf - allow two long 'l' specifiers.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/commit/9c7b7fcd
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/9c7b7fcd
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/9c7b7fcd
Branch: refs/heads/master
Commit: 9c7b7fcddfc4852582fc1029a7620efbecf81407
Parents: fec9e23
Author: Christopher Collins <cc...@gmail.com>
Authored: Wed Feb 3 13:53:40 2016 -0800
Committer: Christopher Collins <cc...@gmail.com>
Committed: Wed Feb 3 15:06:49 2016 -0800
----------------------------------------------------------------------
libs/baselibc/src/tinyprintf.c | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/9c7b7fcd/libs/baselibc/src/tinyprintf.c
----------------------------------------------------------------------
diff --git a/libs/baselibc/src/tinyprintf.c b/libs/baselibc/src/tinyprintf.c
index c0c48da..79ad8d1 100644
--- a/libs/baselibc/src/tinyprintf.c
+++ b/libs/baselibc/src/tinyprintf.c
@@ -266,6 +266,10 @@ size_t tfp_format(FILE *putp, const char *fmt, va_list va)
#ifdef PRINTF_LONG_SUPPORT
lng = 1;
#endif
+ /* Ignore second long specifier. */
+ if (ch == 'l') {
+ ch = *(fmt++);
+ }
}
switch (ch) {