2001-08-20  Ulrich Drepper  <drepper@redhat.com>

	* misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
	* misc/err.c (convert_and_print): Likewise.

	* malloc/obstack.c (print_and_abort): Use fprintf instead of two
	function calls.
This commit is contained in:
Ulrich Drepper 2001-08-21 02:57:38 +00:00
parent 62ed552b93
commit 34ef548a37
4 changed files with 11 additions and 6 deletions

View File

@ -1,3 +1,11 @@
2001-08-20 Ulrich Drepper <drepper@redhat.com>
* misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
* misc/err.c (convert_and_print): Likewise.
* malloc/obstack.c (print_and_abort): Use fprintf instead of two
function calls.
2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com> 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
* sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the

View File

@ -489,10 +489,7 @@ print_and_abort ()
__fwprintf (stderr, L"%s\n", _("memory exhausted")); __fwprintf (stderr, L"%s\n", _("memory exhausted"));
else else
#endif #endif
{ fprintf (stderr, "%s\n", _("memory exhausted"));
fputs (_("memory exhausted"), stderr);
fputc ('\n', stderr);
}
exit (obstack_exit_failure); exit (obstack_exit_failure);
} }

View File

@ -69,7 +69,7 @@ convert_and_print (const char *format, __gnuc_va_list ap)
if (wformat == NULL) if (wformat == NULL)
{ {
fputws (L"out of memory\n", stderr); fputws_unlocked (L"out of memory\n", stderr);
return; return;
} }
} }

View File

@ -151,7 +151,7 @@ error_tail (int status, int errnum, const char *message, va_list args)
if (wmessage == NULL) if (wmessage == NULL)
{ {
fputws (L"out of memory\n", stderr); fputws_unlocked (L"out of memory\n", stderr);
return; return;
} }
} }