From 3f6c2da50a9a1838c8f2991f4fff7bf0224065bd Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Wed, 24 Nov 2021 14:24:29 +0000 Subject: [PATCH] Tools: print enabled/disabled features --- tools/codes_info.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/tools/codes_info.c b/tools/codes_info.c index 9e2a1ee81..fb74746b0 100644 --- a/tools/codes_info.c +++ b/tools/codes_info.c @@ -38,16 +38,17 @@ static void print_debug_info(grib_context* context) aec = 1; #endif grib_context_log(context, GRIB_LOG_DEBUG, "Git SHA1=%s", grib_get_git_sha1()); - grib_context_log(context, GRIB_LOG_DEBUG, "HAVE_JPEG=%d", HAVE_JPEG); - grib_context_log(context, GRIB_LOG_DEBUG, "HAVE_LIBJASPER=%d", HAVE_LIBJASPER); - grib_context_log(context, GRIB_LOG_DEBUG, "HAVE_LIBOPENJPEG=%d", HAVE_JPEG); - grib_context_log(context, GRIB_LOG_DEBUG, "HAVE_LIBPNG=%d", HAVE_LIBPNG); - grib_context_log(context, GRIB_LOG_DEBUG, "HAVE_AEC=%d", aec); - grib_context_log(context, GRIB_LOG_DEBUG, "HAVE_ECCODES_THREADS=%d", GRIB_PTHREADS); + grib_context_log(context, GRIB_LOG_DEBUG, "Features:"); + grib_context_log(context, GRIB_LOG_DEBUG, " HAVE_JPEG=%d", HAVE_JPEG); + grib_context_log(context, GRIB_LOG_DEBUG, " HAVE_LIBJASPER=%d", HAVE_LIBJASPER); + grib_context_log(context, GRIB_LOG_DEBUG, " HAVE_LIBOPENJPEG=%d", HAVE_JPEG); + grib_context_log(context, GRIB_LOG_DEBUG, " HAVE_LIBPNG=%d", HAVE_LIBPNG); + grib_context_log(context, GRIB_LOG_DEBUG, " HAVE_AEC=%d", aec); + grib_context_log(context, GRIB_LOG_DEBUG, " HAVE_ECCODES_THREADS=%d", GRIB_PTHREADS); #ifdef GRIB_OMP_THREADS - grib_context_log(context, GRIB_LOG_DEBUG, "HAVE_ECCODES_OMP_THREADS=%d", GRIB_OMP_THREADS); + grib_context_log(context, GRIB_LOG_DEBUG, " HAVE_ECCODES_OMP_THREADS=%d", GRIB_OMP_THREADS); #endif - grib_context_log(context, GRIB_LOG_DEBUG, "HAVE_MEMFS=%d", memfs); + grib_context_log(context, GRIB_LOG_DEBUG, " HAVE_MEMFS=%d", memfs); } int main(int argc, char* argv[])