summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2012-10-17 15:34:44 +0200
committerAlon Levy <alevy@redhat.com>2012-11-04 13:33:35 +0200
commitbe6392a5ad338e3f55a279adafaa30bc64e03e4a (patch)
treeb8106ea41c71ccb9591dd8b76b665c18a7e3e044
parent8543d04cd238638ac54912f29a0990915ff51b6d (diff)
common/lz.c: improve lz_encode comment
-rw-r--r--common/lz.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/lz.c b/common/lz.c
index 3d77aed..aca3a16 100644
--- a/common/lz.c
+++ b/common/lz.c
@@ -521,8 +521,9 @@ int lz_encode(LzContext *lz, LzImageType type, int width, int height, int top_do
}
} else {
if (encoder->stride != width * RGB_BYTES_PER_PIXEL[encoder->type]) {
- encoder->usr->error(encoder->usr, "stride != width*bytes_per_pixel (rgb) %d %d %d\n",
- encoder->stride, width, RGB_BYTES_PER_PIXEL[encoder->type]);
+ encoder->usr->error(encoder->usr, "stride != width*bytes_per_pixel (rgb) %d != %d * %d (%d)\n",
+ encoder->stride, width, RGB_BYTES_PER_PIXEL[encoder->type],
+ encoder->type);
}
}