859755
commit 7ab27b76d2d47942bc2ed74f674b62c3a51994bb
859755
Author: Florian Weimer <fweimer@redhat.com>
859755
Date:   Fri Jun 30 11:31:02 2017 +0200
859755
859755
    resolv: Remove DEBUG macro from resolv/res_mkquery.c
859755
859755
diff --git a/resolv/res_mkquery.c b/resolv/res_mkquery.c
859755
index 8279d15de4271c84..2e3aa39cf088adf9 100644
859755
--- a/resolv/res_mkquery.c
859755
+++ b/resolv/res_mkquery.c
859755
@@ -1,3 +1,21 @@
859755
+/* Creation of DNS query packets.
859755
+   Copyright (C) 1995-2017 Free Software Foundation, Inc.
859755
+   This file is part of the GNU C Library.
859755
+
859755
+   The GNU C Library is free software; you can redistribute it and/or
859755
+   modify it under the terms of the GNU Lesser General Public
859755
+   License as published by the Free Software Foundation; either
859755
+   version 2.1 of the License, or (at your option) any later version.
859755
+
859755
+   The GNU C Library is distributed in the hope that it will be useful,
859755
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
859755
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
859755
+   Lesser General Public License for more details.
859755
+
859755
+   You should have received a copy of the GNU Lesser General Public
859755
+   License along with the GNU C Library; if not, see
859755
+   <http: www.gnu.org="" licenses=""/>.  */
859755
+
859755
 /*
859755
  * Copyright (c) 1985, 1993
859755
  *    The Regents of the University of California.  All rights reserved.
859755
@@ -70,13 +88,9 @@
859755
 #include <arpa nameser.h="">
859755
 #include <netdb.h>
859755
 #include <resolv resolv-internal.h="">
859755
-#include <stdio.h>
859755
 #include <string.h>
859755
 #include <sys time.h="">
859755
 
859755
-/* Options.  Leave them on. */
859755
-/* #define DEBUG */
859755
-
859755
 #include <hp-timing.h>
859755
 #include <stdint.h>
859755
 #if HP_TIMING_AVAIL
859755
@@ -107,11 +121,6 @@ res_nmkquery(res_state statp,
859755
 	    || type < 0 || type > 65535)
859755
 	  return -1;
859755
 
859755
-#ifdef DEBUG
859755
-	if (statp->options & RES_DEBUG)
859755
-		printf(";; res_nmkquery(%s, %s, %s, %s)\n",
859755
-		       _res_opcodes[op], dname, p_class(class), p_type(type));
859755
-#endif
859755
 	/*
859755
 	 * Initialize header fields.
859755
 	 */
859755
@@ -210,11 +219,6 @@ __res_nopt(res_state statp,
859755
 {
859755
 	u_int16_t flags = 0;
859755
 
859755
-#ifdef DEBUG
859755
-	if ((statp->options & RES_DEBUG) != 0U)
859755
-		printf(";; res_nopt()\n");
859755
-#endif
859755
-
859755
 	HEADER *hp = (HEADER *) buf;
859755
 	u_char *cp = buf + n0;
859755
 	u_char *ep = buf + buflen;
859755
@@ -253,10 +257,6 @@ __res_nopt(res_state statp,
859755
 	*cp++ = 0;		/* EDNS version */
859755
 
859755
 	if (statp->options & RES_USE_DNSSEC) {
859755
-#ifdef DEBUG
859755
-		if (statp->options & RES_DEBUG)
859755
-			printf(";; res_opt()... ENDS0 DNSSEC\n");
859755
-#endif
859755
 		flags |= NS_OPT_DNSSEC_OK;
859755
 	}
859755