aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-misc.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-03-11 09:54:55 +0000
committerUlrich Drepper <drepper@redhat.com>1998-03-11 09:54:55 +0000
commitbc526b60ee5c7cc9fe0540c94d72caf486a41675 (patch)
treebdf37d8b57b474f9e5fcbc8c52b457a5401c478b /elf/dl-misc.c
parent592bdea3bcf1d70894a34c401429cfd5a5fd6a78 (diff)
downloadglibc-bc526b60ee5c7cc9fe0540c94d72caf486a41675.tar
glibc-bc526b60ee5c7cc9fe0540c94d72caf486a41675.tar.gz
glibc-bc526b60ee5c7cc9fe0540c94d72caf486a41675.tar.bz2
glibc-bc526b60ee5c7cc9fe0540c94d72caf486a41675.zip
Update.
1998-03-11 Andreas Jaeger <aj@arthur.rhein-neckar.de> * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Use _dl_debug_message. 1998-03-12 Matthias Urlichs <smurf@noris.de> * 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 <schwab@issan.informatik.uni-dortmund.de> * aclocal.m4 (LIBC_PROG_FOO_GNU): Fix order of redirection. 1998-03-11 Ulrich Drepper <drepper@cygnus.com> * sysdeps/unix/sysv/linux/Dist: Add scsi/scsi.h. * sysdeps/unix/sysv/linux/scsi/sg.h: Include features.h. 1998-03-10 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> * 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 <schwab@issan.informatik.uni-dortmund.de>
Diffstat (limited to 'elf/dl-misc.c')
-rw-r--r--elf/dl-misc.c6
1 files changed, 4 insertions, 2 deletions
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;
}