]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
removed debugging printfs
authorMiek Gieben <miekg@NLnetLabs.nl>
Mon, 14 Feb 2005 12:15:03 +0000 (12:15 +0000)
committerMiek Gieben <miekg@NLnetLabs.nl>
Mon, 14 Feb 2005 12:15:03 +0000 (12:15 +0000)
str2host.c

index eadf1005cb23bb1942ad5073f39dbea42162d99e..d79ec2046eeda61f0cafed112f087750356694cb 100644 (file)
@@ -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;
 }