X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=images%2Fimage.c;h=058b173e9abf192261ae8ef5d800fa833c2ba361;hb=1f05348cde42852d77da3457b96a33dff1600ca4;hp=26445aa34835934fa73545f980fb4b6d28b92f0e;hpb=f784f9b6365d92dac7b10ab2e589d02c7445e987;p=libucw.git diff --git a/images/image.c b/images/image.c index 26445aa3..058b173e 100644 --- a/images/image.c +++ b/images/image.c @@ -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)