From 63afc5af333f8c3ae6b2507ea04fb18a68d11725 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Fri, 13 Mar 2020 15:16:23 +0000 Subject: [PATCH] Debugging --- src/grib_templates.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/grib_templates.c b/src/grib_templates.c index a9d03ad6a..6d9fefa88 100644 --- a/src/grib_templates.c +++ b/src/grib_templates.c @@ -50,7 +50,7 @@ static grib_handle* try_template(grib_context* c, const char* dir, const char* n sprintf(path, "%s/%s.tmpl", dir, name); - if (c->debug == -1) { + if (c->debug) { fprintf(stderr, "ECCODES DEBUG: try_template path='%s'\n", path); } @@ -78,7 +78,7 @@ static grib_handle* try_bufr_template(grib_context* c, const char* dir, const ch sprintf(path, "%s/%s.tmpl", dir, name); - if (c->debug == -1) { + if (c->debug) { fprintf(stderr, "ECCODES DEBUG: try_template path='%s'\n", path); }