From 06801f142fa472fe8d19f3068fab7296d6c60807 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Fri, 9 Dec 2022 15:59:14 +0000 Subject: [PATCH] Testing: Print packing type which failed the test --- tests/grib_2nd_order_numValues.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/grib_2nd_order_numValues.c b/tests/grib_2nd_order_numValues.c index e129703ee..ddc3bd7a8 100644 --- a/tests/grib_2nd_order_numValues.c +++ b/tests/grib_2nd_order_numValues.c @@ -2753,7 +2753,8 @@ int main(int argc, char* argv[]) GRIB_CHECK(grib_get_long(h, "numberOfDataPoints", &numberOfDataPoints), 0); if (numberOfValues + numberOfMissing != numberOfDataPoints) { - printf(" numberOfValues = %ld, numberOfDataPoints = %ld, numberOfMissing = %d\n", numberOfValues, numberOfDataPoints, numberOfMissing); + printf("%s: numberOfValues = %ld, numberOfDataPoints = %ld, numberOfMissing = %d\n", + packingType[ipackingType], numberOfValues, numberOfDataPoints, numberOfMissing); printf(" numberOfValues appears to be incorrect\n"); return 1; }