mirror of https://github.com/ecmwf/eccodes.git
ECC-1247: grib_dump: indicate which keys can have values which are 'missing'
This commit is contained in:
parent
4bc0661487
commit
ac7b5d2cf3
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue