BUFR: add debug aid for bitmaps

This commit is contained in:
Shahram Najm 2018-11-05 15:14:09 +00:00
parent 77b44ff38c
commit 9f61e2be70
1 changed files with 2 additions and 0 deletions

View File

@ -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;i<bitmapSize;i++) {
if (bitmap->referredElement==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;