aboutsummaryrefslogtreecommitdiff
path: root/resolv
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-08-12 17:42:16 +0000
committerUlrich Drepper <drepper@redhat.com>2004-08-12 17:42:16 +0000
commit2566e5f3a377e31c7c974bdddee8cb55ebdafb1f (patch)
tree8094ff5c295bd6a26b0738587a8fe252e56a4cac /resolv
parent693aa14981749e34ea742acfcfe8be9eaec2baa7 (diff)
downloadglibc-2566e5f3a377e31c7c974bdddee8cb55ebdafb1f.zip
glibc-2566e5f3a377e31c7c974bdddee8cb55ebdafb1f.tar.gz
glibc-2566e5f3a377e31c7c974bdddee8cb55ebdafb1f.tar.bz2
Update.
2004-08-12 Jakub Jelinek <jakub@redhat.com> * resolv/res_query.c (__libc_res_nsearch): Protect the debugging printf with #ifdef DEBUG and RES_DEBUG check. * sysdeps/unix/sysv/linux/bits/shm.h: Move __END_DECLS after __USE_MISC #endif. * sysdeps/generic/bits/shm.h: Add __BEGIN_DECLS for __getpagesize declaration. * sysdeps/gnu/bits/shm.h: Likewise. * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise. * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise. * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise. * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
Diffstat (limited to 'resolv')
-rw-r--r--resolv/res_query.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/resolv/res_query.c b/resolv/res_query.c
index bad1495..d2ef3b5 100644
--- a/resolv/res_query.c
+++ b/resolv/res_query.c
@@ -239,8 +239,11 @@ __libc_res_nsearch(res_state statp,
return (__libc_res_nquery(statp, cp, class, type, answer,
anslen, answerp));
- printf("dots=%d, statp->ndots=%d, trailing_dot=%d, name=%s\n",
- (int)dots,(int)statp->ndots,(int)trailing_dot,name);
+#ifdef DEBUG
+ if (statp->options & RES_DEBUG)
+ printf("dots=%d, statp->ndots=%d, trailing_dot=%d, name=%s\n",
+ (int)dots,(int)statp->ndots,(int)trailing_dot,name);
+#endif
/*
* If there are enough dots in the name, let's just give it a