Debug info

This commit is contained in:
shahramn 2024-11-20 14:01:48 +00:00
parent c4efc1d5f0
commit 8df839fee1
3 changed files with 5 additions and 4 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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);
}