mirror of https://github.com/ecmwf/eccodes.git
ECC-1584: grib_dump: indicate which keys are 'read-only'
This commit is contained in:
parent
4012d58d73
commit
8e9e9c59ce
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue