]> mj.ucw.cz Git - libucw.git/blobdiff - images/image.c
Split autoconf.cfg
[libucw.git] / images / image.c
index 26445aa34835934fa73545f980fb4b6d28b92f0e..c741d3960c60301d61c97ac580402db36e146ce5 100644 (file)
@@ -9,8 +9,8 @@
 
 #undef LOCAL_DEBUG
 
-#include "lib/lib.h"
-#include "lib/mempool.h"
+#include "ucw/lib.h"
+#include "ucw/mempool.h"
 #include "images/images.h"
 #include "images/error.h"
 #include "images/color.h"
@@ -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)
     {
-      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)