diff --git a/nuttx/lib/stdio/lib_libvsprintf.c b/nuttx/lib/stdio/lib_libvsprintf.c index dd2c5f83f5..8d521c35e8 100644 --- a/nuttx/lib/stdio/lib_libvsprintf.c +++ b/nuttx/lib/stdio/lib_libvsprintf.c @@ -1558,7 +1558,7 @@ int lib_vsprintf(FAR struct lib_outstream_s *obj, FAR const char *src, va_list a #ifdef CONFIG_LIBC_FLOATINGPOINT else if (strchr("eEfgG", FMT_CHAR)) { -#ifdef CONFIG_NOPRINTF_FIELDWIDTH +#ifndef CONFIG_NOPRINTF_FIELDWIDTH double dblval = va_arg(ap, double); int dblsize;