ret_neighbors = neighbors = calloc(w*h*k, nb_size);
// printf("alloc neighbor grid=%lu Mbytes\n", nb_size*w*h*k/1024/1024);
if (!ret_neighbors) {
- printf("failed to allocate neighbor grid\n");
+ printf("failed to allocate neighbor grid (%lu megabytes)\n", nb_size * w*h*k / 1024 / 1024 );
return NULL;
}