From 32204974c5d931f4d37009e2a32e6fb0b2351b80 Mon Sep 17 00:00:00 2001 From: tb Date: Sat, 10 Dec 2022 10:56:16 +0000 Subject: [PATCH] bio chain test: compress some error printing --- regress/lib/libcrypto/bio/bio_chain.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/regress/lib/libcrypto/bio/bio_chain.c b/regress/lib/libcrypto/bio/bio_chain.c index de6fc3af2a5..83034a54136 100644 --- a/regress/lib/libcrypto/bio/bio_chain.c +++ b/regress/lib/libcrypto/bio/bio_chain.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bio_chain.c,v 1.13 2022/12/10 10:45:39 tb Exp $ */ +/* $OpenBSD: bio_chain.c,v 1.14 2022/12/10 10:56:16 tb Exp $ */ /* * Copyright (c) 2022 Theo Buehler * @@ -213,14 +213,13 @@ walk_report(BIO *last, BIO *expected_last, size_t len, size_t expected_len, const char *direction, const char *last_name) { if (last != expected_last) { - fprintf(stderr, "%s case (%zu, %zu) %s has unexpected %s\n", - fn, i, j, description, last_name); + fprintf(stderr, "%s case (%zu, %zu) %s %s has unexpected %s\n", + fn, i, j, description, direction, last_name); return 0; } if (len != expected_len) { - fprintf(stderr, "%s case (%zu, %zu) %s length " - "(walking %s) want: %zu, got %zu\n", + fprintf(stderr, "%s case (%zu, %zu) %s %s want %zu, got %zu\n", fn, i, j, description, direction, expected_len, len); return 0; } -- 2.20.1