From 9f61e2be70109cb87b900cc79702b3840eef30ee Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Mon, 5 Nov 2018 15:14:09 +0000 Subject: [PATCH] BUFR: add debug aid for bitmaps --- src/grib_accessor_class_bufr_data_array.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/grib_accessor_class_bufr_data_array.c b/src/grib_accessor_class_bufr_data_array.c index 8f74e163f..225b0847a 100644 --- a/src/grib_accessor_class_bufr_data_array.c +++ b/src/grib_accessor_class_bufr_data_array.c @@ -2075,11 +2075,13 @@ static int bitmap_init(grib_context* c, bitmap_s* bitmap, } bitmap->referredElement=bitmapStart; while (bitmap_ref_skip(bitmap->referredElement,&ret)) bitmap->referredElement=bitmap->referredElement->prev; + /*printf("bitmap_init: bitmapSize=%d\n", bitmapSize);*/ for (i=1;ireferredElement==NULL) { grib_context_log(c, GRIB_LOG_ERROR,"bitmap_init: bitmap->referredElement==NULL"); return GRIB_INTERNAL_ERROR; } + /*printf(" bitmap_init: i=%d |%s|\n", i,bitmap->referredElement->accessor->name);*/ bitmap->referredElement=bitmap->referredElement->prev; } bitmap->referredElementStart=bitmap->referredElement;