mirror of https://github.com/ecmwf/eccodes.git
Debug info
This commit is contained in:
parent
c4efc1d5f0
commit
8df839fee1
|
@ -139,7 +139,7 @@ int grib_accessor_ascii_t::unpack_long(long* v, size_t* len)
|
|||
|
||||
*v = strtol(val, &last, 10);
|
||||
|
||||
grib_context_log(this->context_, GRIB_LOG_DEBUG, " Casting string %s to long", name_);
|
||||
grib_context_log(this->context_, GRIB_LOG_DEBUG, "Casting string %s to long", name_);
|
||||
return GRIB_SUCCESS;
|
||||
}
|
||||
|
||||
|
@ -155,7 +155,7 @@ int grib_accessor_ascii_t::unpack_double(double* v, size_t* len)
|
|||
*v = strtod(val, &last);
|
||||
|
||||
if (*last == 0) {
|
||||
grib_context_log(this->context_, GRIB_LOG_DEBUG, " Casting string %s to long", name_);
|
||||
grib_context_log(this->context_, GRIB_LOG_DEBUG, "Casting string %s to long", name_);
|
||||
return GRIB_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
|
@ -115,7 +115,7 @@ int grib_accessor_group_t::unpack_long(long* v, size_t* len)
|
|||
|
||||
*v = strtol(val, &last, 10);
|
||||
|
||||
grib_context_log(context_, GRIB_LOG_DEBUG, " Casting string %s to long", name_);
|
||||
grib_context_log(context_, GRIB_LOG_DEBUG, "Casting string %s to long", name_);
|
||||
return GRIB_SUCCESS;
|
||||
}
|
||||
|
||||
|
@ -128,7 +128,7 @@ int grib_accessor_group_t::unpack_double(double* v, size_t* len)
|
|||
*v = strtod(val, &last);
|
||||
|
||||
if (*last == 0) {
|
||||
grib_context_log(context_, GRIB_LOG_DEBUG, " Casting string %s to long", name_);
|
||||
grib_context_log(context_, GRIB_LOG_DEBUG, "Casting string %s to long", name_);
|
||||
return GRIB_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
|
@ -547,6 +547,7 @@ grib_context* grib_context_get_default()
|
|||
#endif
|
||||
|
||||
if (default_grib_context.debug) {
|
||||
fprintf(stderr, "ECCODES DEBUG ecCodes Version: %s\n", ECCODES_VERSION_STR);
|
||||
fprintf(stderr, "ECCODES DEBUG Definitions path: %s\n", default_grib_context.grib_definition_files_path);
|
||||
fprintf(stderr, "ECCODES DEBUG Samples path: %s\n", default_grib_context.grib_samples_path);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue