Testing: Print packing type which failed the test

This commit is contained in:
Shahram Najm 2022-12-09 15:59:14 +00:00
parent fb1b4fc980
commit 06801f142f
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}