diff options
author | tb <> | 2022-12-10 10:56:16 +0000 |
---|---|---|
committer | tb <> | 2022-12-10 10:56:16 +0000 |
commit | 60c9213376bc51babcd59a3db7ca0f758e21de6c (patch) | |
tree | 3f888a5bc2c4405790446fee42205edc3ddd3454 /src/regress | |
parent | 6123df412acd626ae176b2b3632215d8a32c598f (diff) | |
download | openbsd-60c9213376bc51babcd59a3db7ca0f758e21de6c.tar.gz openbsd-60c9213376bc51babcd59a3db7ca0f758e21de6c.tar.bz2 openbsd-60c9213376bc51babcd59a3db7ca0f758e21de6c.zip |
bio chain test: compress some error printing
Diffstat (limited to 'src/regress')
-rw-r--r-- | src/regress/lib/libcrypto/bio/bio_chain.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/regress/lib/libcrypto/bio/bio_chain.c b/src/regress/lib/libcrypto/bio/bio_chain.c index de6fc3af2a..83034a5413 100644 --- a/src/regress/lib/libcrypto/bio/bio_chain.c +++ b/src/regress/lib/libcrypto/bio/bio_chain.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bio_chain.c,v 1.13 2022/12/10 10:45:39 tb Exp $ */ | 1 | /* $OpenBSD: bio_chain.c,v 1.14 2022/12/10 10:56:16 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2022 Theo Buehler <tb@openbsd.org> | 3 | * Copyright (c) 2022 Theo Buehler <tb@openbsd.org> |
4 | * | 4 | * |
@@ -213,14 +213,13 @@ walk_report(BIO *last, BIO *expected_last, size_t len, size_t expected_len, | |||
213 | const char *direction, const char *last_name) | 213 | const char *direction, const char *last_name) |
214 | { | 214 | { |
215 | if (last != expected_last) { | 215 | if (last != expected_last) { |
216 | fprintf(stderr, "%s case (%zu, %zu) %s has unexpected %s\n", | 216 | fprintf(stderr, "%s case (%zu, %zu) %s %s has unexpected %s\n", |
217 | fn, i, j, description, last_name); | 217 | fn, i, j, description, direction, last_name); |
218 | return 0; | 218 | return 0; |
219 | } | 219 | } |
220 | 220 | ||
221 | if (len != expected_len) { | 221 | if (len != expected_len) { |
222 | fprintf(stderr, "%s case (%zu, %zu) %s length " | 222 | fprintf(stderr, "%s case (%zu, %zu) %s %s want %zu, got %zu\n", |
223 | "(walking %s) want: %zu, got %zu\n", | ||
224 | fn, i, j, description, direction, expected_len, len); | 223 | fn, i, j, description, direction, expected_len, len); |
225 | return 0; | 224 | return 0; |
226 | } | 225 | } |