crypto-test.c: Don't print dead registers.
[secnet] / crypto-test.c
index e25fd91..4c7c2e3 100644 (file)
@@ -323,6 +323,7 @@ void check_test_output(struct test_state *state, const struct test *test)
        printf("failed test `%s'\n", test->name);
        for (def = test->regs; def->name; def++) {
            in = REG(in, def->i);
+           if (!(in->f&REGF_LIVE)) continue;
            if (def->i >= state->nrout) {
                printf("\t   input `%s' = ", def->name);
                def->ty->dump(stdout, &in->v);