Re: [PATCH] common/lz.c: improve lz_encode comment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ACK.

On 11/04/2012 12:37 PM, Alon Levy wrote:
---
  common/lz.c | 5 +++--
  1 file 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);
          }
      }


_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]