Skip to content

Commit

Permalink
Debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
shahramn committed Nov 20, 2024
1 parent c4efc1d commit 8df839f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/accessor/grib_accessor_class_ascii.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

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

Expand Down
4 changes: 2 additions & 2 deletions src/accessor/grib_accessor_class_group.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

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

Expand Down
1 change: 1 addition & 0 deletions src/grib_context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8df839f

Please sign in to comment.