diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-10 15:01:08 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-10 15:01:08 +0000 |
commit | e366bf2b02a59ae6520f779bf5adbdb626fa8083 (patch) | |
tree | 3f303043872e4501865e251984de3e5da6a021d1 /nuttx/lib/lib_libvsprintf.c | |
parent | 54f8156cb21909034c6e82a5055cf7a906fb5848 (diff) | |
download | px4-nuttx-e366bf2b02a59ae6520f779bf5adbdb626fa8083.tar.gz px4-nuttx-e366bf2b02a59ae6520f779bf5adbdb626fa8083.tar.bz2 px4-nuttx-e366bf2b02a59ae6520f779bf5adbdb626fa8083.zip |
Syntax error when field width not supported
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1183 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib/lib_libvsprintf.c')
-rw-r--r-- | nuttx/lib/lib_libvsprintf.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/nuttx/lib/lib_libvsprintf.c b/nuttx/lib/lib_libvsprintf.c index 456bf181f..d71d0c5b4 100644 --- a/nuttx/lib/lib_libvsprintf.c +++ b/nuttx/lib/lib_libvsprintf.c @@ -851,7 +851,7 @@ static void llutoascii(FAR struct lib_stream_s *obj, ubyte fmt, ubyte flags, uns if ((long long)lln < 0) { obj->put(obj, '-'); - lln = (unsigned long long)(-(long long)*lln); + lln = (unsigned long long)(-(long long)lln); } else if (IS_SHOWPLUS(flags)) { @@ -1003,6 +1003,7 @@ static int getllusize(ubyte fmt, ubyte flags, unsigned long long lln) * Name: prejustify ****************************************************************************/ +#ifndef CONFIG_NOPRINTF_FIELDWIDTH static void prejustify(FAR struct lib_stream_s *obj, ubyte fmt, ubyte flags, int fieldwidth, int numwidth) { @@ -1062,11 +1063,13 @@ static void prejustify(FAR struct lib_stream_s *obj, ubyte fmt, break; } } +#endif /**************************************************************************** * Name: postjustify ****************************************************************************/ +#ifndef CONFIG_NOPRINTF_FIELDWIDTH static void postjustify(FAR struct lib_stream_s *obj, ubyte fmt, ubyte flags, int fieldwidth, int numwidth) { @@ -1094,6 +1097,8 @@ static void postjustify(FAR struct lib_stream_s *obj, ubyte fmt, break; } } +#endif + /**************************************************************************** * Public Functions ****************************************************************************/ |