restore (null) printing

This commit is contained in:
Dave Murphy 2018-02-18 14:43:23 +00:00
parent 4b9b525ece
commit 8d172cbc54

View File

@ -7775,7 +7775,7 @@ index e4a246199..f73baab68 100644
{
return _ftell_r (_REENT, fp);
diff --git a/newlib/libc/stdio/vfprintf.c b/newlib/libc/stdio/vfprintf.c
index c4bf2dbe3..df8b7eace 100644
index c4bf2dbe3..d756df37d 100644
--- a/newlib/libc/stdio/vfprintf.c
+++ b/newlib/libc/stdio/vfprintf.c
@@ -112,6 +112,8 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
@ -7787,6 +7787,24 @@ index c4bf2dbe3..df8b7eace 100644
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)vfprintf.c 5.50 (Berkeley) 12/16/92";*/
static char *rcsid = "$Id$";
@@ -1438,7 +1440,7 @@ reswitch: switch (ch) {
string:
#endif
sign = '\0';
-#ifndef __OPTIMIZE_SIZE__
+//#ifndef __OPTIMIZE_SIZE__
/* Behavior is undefined if the user passed a
NULL string when precision is not 0.
However, if we are not optimizing for size,
@@ -1448,7 +1450,7 @@ string:
size = ((unsigned) prec > 6U) ? 6 : prec;
}
else
-#endif /* __OPTIMIZE_SIZE__ */
+//#endif /* __OPTIMIZE_SIZE__ */
#ifdef _MB_CAPABLE
if (ch == 'S' || (flags & LONGINT)) {
mbstate_t ps;
diff --git a/newlib/libc/stdio/vfscanf.c b/newlib/libc/stdio/vfscanf.c
index b97235559..298f68a9c 100644
--- a/newlib/libc/stdio/vfscanf.c