minor fixes
[colorize.git] / lib / multigrid.c
index 1687d07..da6d151 100644 (file)
@@ -852,7 +852,7 @@ unsigned char *gen_neighbor(int w, int h, int k, const darray_t *flow, const dar
        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;
        }