From bc526b60ee5c7cc9fe0540c94d72caf486a41675 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 11 Mar 1998 09:54:55 +0000 Subject: Update. 1998-03-11 Andreas Jaeger * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Use _dl_debug_message. 1998-03-12 Matthias Urlichs * elf/dl-misc.c: Default for debug output should be stderr. * elf/dl-misc.c: Spurious garbage bytes after the PID in debug output. * elf/dl-lookup.c: reference_name may be NULL or empty. 1998-03-11 10:30 Andreas Schwab * aclocal.m4 (LIBC_PROG_FOO_GNU): Fix order of redirection. 1998-03-11 Ulrich Drepper * sysdeps/unix/sysv/linux/Dist: Add scsi/scsi.h. * sysdeps/unix/sysv/linux/scsi/sg.h: Include features.h. 1998-03-10 Andreas Schwab * sysdeps/unix/sysv/linux/scsi/scsi.h: New file. * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Install it. 1998-03-11 10:30 Andreas Schwab --- elf/dl-misc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'elf/dl-misc.c') diff --git a/elf/dl-misc.c b/elf/dl-misc.c index 1e13d0d28a..3d796360b3 100644 --- a/elf/dl-misc.c +++ b/elf/dl-misc.c @@ -77,7 +77,7 @@ _dl_sysdep_read_whole_file (const char *file, size_t *sizep, int prot) /* Descriptor to write debug messages to. */ -int _dl_debug_fd; +int _dl_debug_fd = 2; void @@ -122,7 +122,9 @@ _dl_debug_message (int new_line, const char *msg, ...) if (new_line) { char buf[7] = "00000:\t"; - __write (_dl_debug_fd, _itoa_word (pid, &buf[5], 10, 0), 7); + assert (pid >= 0 && pid < 100000); + _itoa_word (pid, &buf[5], 10, 0); + __write (_dl_debug_fd, buf, 7); new_line = 0; } -- cgit v1.2.3