diff --git a/src/grib_darray.c b/src/grib_darray.c index bcf72898b..71672421b 100644 --- a/src/grib_darray.c +++ b/src/grib_darray.c @@ -48,7 +48,7 @@ grib_darray* grib_darray_new(grib_context* c, size_t size, size_t incsize) v = (grib_darray*)grib_context_malloc_clear(c, sizeof(grib_darray)); if (!v) { grib_context_log(c, GRIB_LOG_ERROR, - "grib_darray_new unable to allocate %ld bytes\n", sizeof(grib_darray)); + "grib_darray_new unable to allocate %lu bytes\n", sizeof(grib_darray)); return NULL; } v->size = size; @@ -58,7 +58,7 @@ grib_darray* grib_darray_new(grib_context* c, size_t size, size_t incsize) v->v = (double*)grib_context_malloc_clear(c, sizeof(double) * size); if (!v->v) { grib_context_log(c, GRIB_LOG_ERROR, - "grib_darray_new unable to allocate %ld bytes\n", sizeof(double) * size); + "grib_darray_new unable to allocate %lu bytes\n", sizeof(double) * size); return NULL; } return v; @@ -75,7 +75,7 @@ static grib_darray* grib_darray_resize(grib_darray* v) v->size = newsize; if (!v->v) { grib_context_log(c, GRIB_LOG_ERROR, - "grib_darray_resize unable to allocate %ld bytes\n", sizeof(double) * newsize); + "grib_darray_resize unable to allocate %lu bytes\n", sizeof(double) * newsize); return NULL; } return v; diff --git a/src/grib_iarray.c b/src/grib_iarray.c index 14ff45120..b4c8c59de 100644 --- a/src/grib_iarray.c +++ b/src/grib_iarray.c @@ -57,7 +57,7 @@ grib_iarray* grib_iarray_new(grib_context* c, size_t size, size_t incsize) v = (grib_iarray*)grib_context_malloc(c, sizeof(grib_iarray)); if (!v) { grib_context_log(c, GRIB_LOG_ERROR, - "grib_iarray_new unable to allocate %ld bytes\n", sizeof(grib_iarray)); + "grib_iarray_new unable to allocate %lu bytes\n", sizeof(grib_iarray)); return NULL; } v->context = c; @@ -68,7 +68,7 @@ grib_iarray* grib_iarray_new(grib_context* c, size_t size, size_t incsize) v->number_of_pop_front = 0; if (!v->v) { grib_context_log(c, GRIB_LOG_ERROR, - "grib_iarray_new unable to allocate %ld bytes\n", sizeof(long) * size); + "grib_iarray_new unable to allocate %lu bytes\n", sizeof(long) * size); return NULL; } return v; @@ -109,7 +109,7 @@ static grib_iarray* grib_iarray_resize_to(grib_iarray* v, size_t newsize) newv = (long*)grib_context_malloc_clear(c, newsize * sizeof(long)); if (!newv) { grib_context_log(c, GRIB_LOG_ERROR, - "grib_iarray_resize unable to allocate %ld bytes\n", sizeof(long) * newsize); + "grib_iarray_resize unable to allocate %lu bytes\n", sizeof(long) * newsize); return NULL; } diff --git a/src/grib_oarray.c b/src/grib_oarray.c index f7ad9f4bb..6697e81a4 100644 --- a/src/grib_oarray.c +++ b/src/grib_oarray.c @@ -24,7 +24,7 @@ grib_oarray* grib_oarray_new(grib_context* c, size_t size, size_t incsize) v = (grib_oarray*)grib_context_malloc_clear(c, sizeof(grib_oarray)); if (!v) { grib_context_log(c, GRIB_LOG_ERROR, - "grib_oarray_new unable to allocate %ld bytes\n", sizeof(grib_oarray)); + "grib_oarray_new unable to allocate %lu bytes\n", sizeof(grib_oarray)); return NULL; } v->size = size; @@ -34,7 +34,7 @@ grib_oarray* grib_oarray_new(grib_context* c, size_t size, size_t incsize) v->context = c; if (!v->v) { grib_context_log(c, GRIB_LOG_ERROR, - "grib_oarray_new unable to allocate %ld bytes\n", sizeof(char*) * size); + "grib_oarray_new unable to allocate %lu bytes\n", sizeof(char*) * size); return NULL; } return v; @@ -51,7 +51,7 @@ static grib_oarray* grib_oarray_resize(grib_oarray* v) v->size = newsize; if (!v->v) { grib_context_log(c, GRIB_LOG_ERROR, - "grib_oarray_resize unable to allocate %ld bytes\n", sizeof(char*) * newsize); + "grib_oarray_resize unable to allocate %lu bytes\n", sizeof(char*) * newsize); return NULL; } return v; diff --git a/src/grib_sarray.c b/src/grib_sarray.c index 96a33d711..869abde67 100644 --- a/src/grib_sarray.c +++ b/src/grib_sarray.c @@ -18,7 +18,7 @@ grib_sarray* grib_sarray_new(grib_context* c, size_t size, size_t incsize) v = (grib_sarray*)grib_context_malloc_clear(c, sizeof(grib_sarray)); if (!v) { grib_context_log(c, GRIB_LOG_ERROR, - "grib_sarray_new unable to allocate %ld bytes\n", sizeof(grib_sarray)); + "grib_sarray_new unable to allocate %lu bytes\n", sizeof(grib_sarray)); return NULL; } v->size = size; @@ -28,7 +28,7 @@ grib_sarray* grib_sarray_new(grib_context* c, size_t size, size_t incsize) v->v = (char**)grib_context_malloc_clear(c, sizeof(char*) * size); if (!v->v) { grib_context_log(c, GRIB_LOG_ERROR, - "grib_sarray_new unable to allocate %ld bytes\n", sizeof(char*) * size); + "grib_sarray_new unable to allocate %lu bytes\n", sizeof(char*) * size); return NULL; } return v; @@ -45,7 +45,7 @@ static grib_sarray* grib_sarray_resize(grib_sarray* v) v->size = newsize; if (!v->v) { grib_context_log(c, GRIB_LOG_ERROR, - "grib_sarray_resize unable to allocate %ld bytes\n", sizeof(char*) * newsize); + "grib_sarray_resize unable to allocate %lu bytes\n", sizeof(char*) * newsize); return NULL; } return v; diff --git a/src/grib_vdarray.c b/src/grib_vdarray.c index 9967c6165..62f635787 100644 --- a/src/grib_vdarray.c +++ b/src/grib_vdarray.c @@ -38,7 +38,7 @@ grib_vdarray* grib_vdarray_new(grib_context* c, size_t size, size_t incsize) v = (grib_vdarray*)grib_context_malloc_clear(c, sizeof(grib_vdarray)); if (!v) { grib_context_log(c, GRIB_LOG_ERROR, - "grib_vdarray_new unable to allocate %ld bytes\n", sizeof(grib_vdarray)); + "grib_vdarray_new unable to allocate %lu bytes\n", sizeof(grib_vdarray)); return NULL; } v->size = size; @@ -48,7 +48,7 @@ grib_vdarray* grib_vdarray_new(grib_context* c, size_t size, size_t incsize) v->v = (grib_darray**)grib_context_malloc_clear(c, sizeof(grib_darray*) * size); if (!v->v) { grib_context_log(c, GRIB_LOG_ERROR, - "grib_vdarray_new unable to allocate %ld bytes\n", sizeof(grib_darray*) * size); + "grib_vdarray_new unable to allocate %lu bytes\n", sizeof(grib_darray*) * size); return NULL; } return v; @@ -65,7 +65,7 @@ static grib_vdarray* grib_vdarray_resize(grib_vdarray* v) v->size = newsize; if (!v->v) { grib_context_log(c, GRIB_LOG_ERROR, - "grib_vdarray_resize unable to allocate %ld bytes\n", sizeof(grib_darray*) * newsize); + "grib_vdarray_resize unable to allocate %lu bytes\n", sizeof(grib_darray*) * newsize); return NULL; } return v; diff --git a/src/grib_viarray.c b/src/grib_viarray.c index c3b805a16..126591a1e 100644 --- a/src/grib_viarray.c +++ b/src/grib_viarray.c @@ -38,7 +38,7 @@ grib_viarray* grib_viarray_new(grib_context* c, size_t size, size_t incsize) v = (grib_viarray*)grib_context_malloc_clear(c, sizeof(grib_viarray)); if (!v) { grib_context_log(c, GRIB_LOG_ERROR, - "grib_viarray_new unable to allocate %ld bytes\n", sizeof(grib_viarray)); + "grib_viarray_new unable to allocate %lu bytes\n", sizeof(grib_viarray)); return NULL; } v->size = size; @@ -48,7 +48,7 @@ grib_viarray* grib_viarray_new(grib_context* c, size_t size, size_t incsize) v->v = (grib_iarray**)grib_context_malloc_clear(c, sizeof(grib_iarray*) * size); if (!v->v) { grib_context_log(c, GRIB_LOG_ERROR, - "grib_viarray_new unable to allocate %ld bytes\n", sizeof(grib_iarray*) * size); + "grib_viarray_new unable to allocate %lu bytes\n", sizeof(grib_iarray*) * size); return NULL; } return v; @@ -65,7 +65,7 @@ static grib_viarray* grib_viarray_resize(grib_viarray* v) v->size = newsize; if (!v->v) { grib_context_log(c, GRIB_LOG_ERROR, - "grib_viarray_resize unable to allocate %ld bytes\n", sizeof(grib_iarray*) * newsize); + "grib_viarray_resize unable to allocate %lu bytes\n", sizeof(grib_iarray*) * newsize); return NULL; } return v; diff --git a/src/grib_vsarray.c b/src/grib_vsarray.c index 30ab5bddd..227aa41fc 100644 --- a/src/grib_vsarray.c +++ b/src/grib_vsarray.c @@ -24,7 +24,7 @@ grib_vsarray* grib_vsarray_new(grib_context* c, size_t size, size_t incsize) v = (grib_vsarray*)grib_context_malloc_clear(c, sizeof(grib_vsarray)); if (!v) { grib_context_log(c, GRIB_LOG_ERROR, - "grib_vsarray_new unable to allocate %ld bytes\n", sizeof(grib_vsarray)); + "grib_vsarray_new unable to allocate %lu bytes\n", sizeof(grib_vsarray)); return NULL; } v->size = size; @@ -34,7 +34,7 @@ grib_vsarray* grib_vsarray_new(grib_context* c, size_t size, size_t incsize) v->v = (grib_sarray**)grib_context_malloc_clear(c, sizeof(grib_sarray*) * size); if (!v->v) { grib_context_log(c, GRIB_LOG_ERROR, - "grib_vsarray_new unable to allocate %ld bytes\n", sizeof(grib_sarray*) * size); + "grib_vsarray_new unable to allocate %lu bytes\n", sizeof(grib_sarray*) * size); return NULL; } return v; @@ -51,7 +51,7 @@ static grib_vsarray* grib_vsarray_resize(grib_vsarray* v) v->size = newsize; if (!v->v) { grib_context_log(c, GRIB_LOG_ERROR, - "grib_vsarray_resize unable to allocate %ld bytes\n", sizeof(grib_sarray*) * newsize); + "grib_vsarray_resize unable to allocate %lu bytes\n", sizeof(grib_sarray*) * newsize); return NULL; } return v;