[Spice-commits] common/lz.c
Alon Levy
alon at kemper.freedesktop.org
Sun Nov 4 03:40:28 PST 2012
common/lz.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit be6392a5ad338e3f55a279adafaa30bc64e03e4a
Author: Alon Levy <alevy at redhat.com>
Date: Wed Oct 17 15:34:44 2012 +0200
common/lz.c: improve lz_encode comment
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);
}
}
More information about the Spice-commits
mailing list