ECC-1467: Use __func__ in log messages

This commit is contained in:
Eugen Betke 2023-03-13 12:32:36 +00:00
parent ce053e1bdc
commit 97a007a4a2
2 changed files with 3 additions and 3 deletions

View File

@ -435,7 +435,7 @@ static int unpack(grib_accessor* a, T* val, size_t* len)
grib_context_log(a->context, GRIB_LOG_DEBUG,
"grib_accessor_class_data_apply_bitmap: %s : creating %s, %d values",
__PRETTY_FUNCTION__,
__func__,
a->name, n_vals);
for (i = 0; i < n_vals; i++) {
@ -449,7 +449,7 @@ static int unpack(grib_accessor* a, T* val, size_t* len)
grib_context_log(a->context, GRIB_LOG_ERROR,
"grib_accessor_class_data_apply_bitmap [%s]:"
" %s : number of coded values does not match bitmap %ld %ld",
a->name, __PRETTY_FUNCTION__, coded_n_vals, n_vals);
a->name, __func__, coded_n_vals, n_vals);
return GRIB_ARRAY_TOO_SMALL;
}

View File

@ -573,7 +573,7 @@ static int unpack(grib_accessor* a, T* val, size_t* len)
if ((err = aec_buffer_decode(&strm)) != AEC_OK) {
grib_context_log(a->context, GRIB_LOG_ERROR, "CCSDS %s: aec_buffer_decode error %d (%s)\n",
__PRETTY_FUNCTION__, err, aec_get_error_message(err));
__func__, err, aec_get_error_message(err));
err = GRIB_ENCODING_ERROR;
goto cleanup;
}