void
print_fs_rd_info(struct rec_data_tor *rd)
{
    assert(rd);
    print_rd("rd->parent_tid %d  ",rd->parent_tid);
    print_rd("rd->s_tid %d  ",rd->s_tid);
    print_rd("rd->c_tid %d  ",rd->c_tid);

    print_rd("rd->param %s  ",rd->param);
    print_rd("rd->pram_len %d  ",rd->param_len);
    print_rd("rd->tflags %d  ",rd->tflags);
    print_rd("rd->evtid %ld  ",rd->evtid);

    print_rd("rd->fcnt %ld  ",rd->fcnt);
    print_rd("global_fault_cnt %ld  ",global_fault_cnt);

    print_rd("rd->offset %d \n ",rd->offset);

    return;
}
Пример #2
0
/** pretty line of RR data for results */
static void
pretty_rdata(char* q, char* cstr, char* tstr, int t, const char* sec, 
	char* data, size_t len)
{
	printf("%s", q);
	if(strcmp(cstr, "IN") != 0)
		printf(" in class %s", cstr);
	if(t == LDNS_RR_TYPE_A)
		printf(" has address");
	else if(t == LDNS_RR_TYPE_AAAA)
		printf(" has IPv6 address");
	else if(t == LDNS_RR_TYPE_MX)
		printf(" mail is handled by");
	else if(t == LDNS_RR_TYPE_PTR)
		printf(" domain name pointer");
	else	printf(" has %s record", tstr);
	print_rd(t, data, len);
	if(verb > 0)
		printf(" %s", sec);
	printf("\n");
}