ECC-1584: grib_dump: indicate which keys are 'read-only'

This commit is contained in:
Shahram Najm 2023-05-09 10:36:28 +01:00
parent 4012d58d73
commit 8e9e9c59ce
1 changed files with 2 additions and 0 deletions

View File

@ -193,6 +193,8 @@ static void dump_long(grib_dumper* d, grib_accessor* a, const char* 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 ((a->flags & GRIB_ACCESSOR_FLAG_READ_ONLY) != 0)
fprintf(self->dumper.out, " %s", "(read-only)");
}
if (err)
fprintf(self->dumper.out, " *** ERR=%d (%s) [grib_dumper_debug::dump_long]", err, grib_get_error_message(err));