-/* $OpenBSD: bio_chain.c,v 1.9 2022/12/09 07:47:59 tb Exp $ */
+/* $OpenBSD: bio_chain.c,v 1.10 2022/12/09 07:53:06 tb Exp $ */
/*
* Copyright (c) 2022 Theo Buehler <tb@openbsd.org>
*
int ret = 0;
if (start == NULL || end == NULL) {
- if (expected_len != 0)
+ if (expected_len != 0) {
+ fprintf(stderr, "%s case (%zu, %zu) %s: empty chain "
+ "with expected length %zu > 0\n",
+ fn, i, j, description, expected_len);
goto err;
+ }
goto done;
}
int ret = 0;
if (start == NULL || end == NULL) {
- if (expected_len != 0)
+ if (expected_len != 0) {
+ fprintf(stderr, "%s case (%zu, %zu) %s: empty chain "
+ "with expected length %zu > 0\n",
+ fn, i, j, description, expected_len);
goto err;
+ }
goto done;
}