]> mj.ucw.cz Git - libucw.git/blobdiff - images/image.c
Implemented SORT_UNIFY, SORT_UNIQUE and debugged SORT_VAR_DATA.
[libucw.git] / images / image.c
index 26445aa34835934fa73545f980fb4b6d28b92f0e..058b173e9abf192261ae8ef5d800fa833c2ba361 100644 (file)
@@ -41,7 +41,7 @@ image_new(struct image_context *ctx, uns cols, uns rows, uns flags, struct mempo
   pixel_size = channels = flags_to_pixel_size(flags);
   if (!channels || channels > 4)
     {
   pixel_size = channels = flags_to_pixel_size(flags);
   if (!channels || channels > 4)
     {
-      IMAGE_ERROR(ctx, IMAGE_ERROR_INVALID_PIXEL_FORMAT, "Invalid number of color channels");
+      IMAGE_ERROR(ctx, IMAGE_ERROR_INVALID_PIXEL_FORMAT, "Invalid number of color channels (%u)", channels);
       return NULL;
     }
   switch (channels)
       return NULL;
     }
   switch (channels)