ECC-1247: grib_dump: indicate which keys can have values which are 'missing'

This commit is contained in:
Shahram Najm 2021-05-27 16:25:48 +01:00
parent 4bc0661487
commit ac7b5d2cf3
1 changed files with 2 additions and 0 deletions

View File

@ -191,6 +191,8 @@ static void dump_long(grib_dumper* d, grib_accessor* a, const char* comment)
fprintf(self->dumper.out, "%ld-%ld %s %s = %ld", self->begin, self->theEnd, a->creator->op, a->name, value);
if (comment)
fprintf(self->dumper.out, " [%s]", comment);
if ((a->flags & GRIB_ACCESSOR_FLAG_CAN_BE_MISSING) != 0)
fprintf(self->dumper.out, " %s", "(can be missing)");
}
if (err)
fprintf(self->dumper.out, " *** ERR=%d (%s) [grib_dumper_debug::dump_long]", err, grib_get_error_message(err));