Remove debug printf calls

This commit is contained in:
David Adrian 2013-10-11 10:25:45 -04:00
parent 4af98e9951
commit bc516445ef
2 changed files with 2 additions and 7 deletions

View File

@ -20,7 +20,6 @@ static int validate_node(node_t *node, fielddefset_t *fields)
for (i = 0; i < fields->len; i++) {
if (fields->fielddefs[i].name) {
printf("Fields: %s, Looking for: %s\n", fields->fielddefs[i].name, node->value.field.fieldname);
if (strcmp(fields->fielddefs[i].name, node->value.field.fieldname) == 0) {
node->value.field.index = i;
return 1;
@ -43,9 +42,6 @@ int parse_filter_string(char *filter)
return 0;
}
zconf.filter.expression = zfilter;
print_expression(zfilter);
printf("%s\n", "");
fflush(stdout);
return 1;
}
@ -59,6 +55,6 @@ int validate_filter(node_t *root, fielddefset_t *fields)
if (!valid) {
return 0;
}
return (validate_filter(root->left_child, fields) && validate_filter(root->right_child, fields));
}

View File

@ -7,8 +7,7 @@
void yyerror(const char *str)
{
fprintf(stderr,"error: %s\n",str);
fprintf(stderr, "%s\n", "YOLO");
fprintf(stderr,"Parse error: %s\n",str);
}
int yywrap()