Make testsuite errors greppable.

This commit is contained in:
Giovanni Bajo
2012-05-02 19:59:16 +02:00
committed by Simon Kelley
parent 75ffc9bf15
commit ccd1d32c3a

View File

@@ -636,7 +636,7 @@ static void dnssec_parserrsig(struct dns_header *header, size_t pktlen,
if (end_rrsig_validation(&val, crecp)) if (end_rrsig_validation(&val, crecp))
printf("Validation OK\n"); printf("Validation OK\n");
else else
printf("Validation FAILED\n"); printf("ERROR: Validation FAILED (%s, keytag:%d, algo:%d)\n", owner, val.keytag, verifyalg_algonum(val.alg));
} }
} }
@@ -777,9 +777,11 @@ int dnssec_parseds(struct dns_header *header, size_t pktlen, char *owner, unsign
{ {
/* TODO: create a link within the cache: ds => dnskey */ /* TODO: create a link within the cache: ds => dnskey */
printf("MATCH FOUND for keytag %d\n", keytag); printf("MATCH FOUND for keytag %d\n", keytag);
return 1;
} }
} }
printf("ERROR: match not found for DS %d (owner: %s)\n", keytag, owner);
return 0; return 0;
} }