From: Miek Gieben Date: Mon, 14 Feb 2005 12:15:03 +0000 (+0000) Subject: removed debugging printfs X-Git-Tag: release-0.50~441 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be7ec6dabc5bad97fab2a450efffb9cfc6f7208c;p=thirdparty%2Fldns.git removed debugging printfs --- diff --git a/str2host.c b/str2host.c index eadf1005..d79ec204 100644 --- a/str2host.c +++ b/str2host.c @@ -169,8 +169,6 @@ ldns_str2rdf_dname(ldns_rdf **d, const uint8_t* str) /* if the string does not end with a dot then add the dot */ memcpy(buf_str, str, len); - printf("length %d\n", len); - printf("char [%c]\n", buf_str[len - 1]); if (buf_str[len - 1] != '.') { if (len + 1 > MAXDOMAINLEN) { @@ -187,10 +185,6 @@ ldns_str2rdf_dname(ldns_rdf **d, const uint8_t* str) * lenght of the first label */ len += 1; - printf("modified dname [%s]\n", buf_str); - printf("new length %d\n", len); - - if ((stat = ldns_octet(buf_str, &octet_len)) != LDNS_STATUS_OK) { return stat; } @@ -201,9 +195,7 @@ ldns_str2rdf_dname(ldns_rdf **d, const uint8_t* str) */ q = buf; for (s = p = buf_str; *s; s++) { - printf("going in %d\n", i++); if (*s == '.') { - printf("dot s:%x p: %x diff %d\n", s, p, s-p); label_chars = (unsigned int) (s - p); label_chars2 = label_chars + 48; /* somehting printable */ /* put this number in the right spot in buf and copy those chars over*/ @@ -226,9 +218,6 @@ ldns_str2rdf_dname(ldns_rdf **d, const uint8_t* str) /* s - buf_str works because no magic is done in the above for-loop */ /* *d = ldns_rdf_new_frm_data((s - buf_str + 2) , LDNS_RDF_TYPE_DNAME , buf); */ *d = ldns_rdf_new_frm_data(len , LDNS_RDF_TYPE_DNAME , buf); - printf("d size %d\n", (*d)->_size); - printf("d data %s\n", (*d)->_data); - return LDNS_STATUS_OK; }