[Spice-commits] server/red-replay-qxl.c

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Sep 19 15:12:11 UTC 2018


 server/red-replay-qxl.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit fea0c0c16fc04dbeec81c24e4694b1f3621d6d5c
Author: Changqing Li <changqing.li at windriver.com>
Date:   Thu Sep 13 13:23:44 2018 +0800

    spice: fix compile error
    
    fix below compile error:
    format '%d' expects argument of type 'int', but argument 6 has
    type 'long unsigned int' [-Werror=format=]
    
    spice compile failed on 32bit system, since upstream commit
    9541cd2fe change %ld to %PRIdPTR, %PRIdPTR is %d, but argument
    strm.total_out is uLong.
    
    Signed-off-by: Changqing Li <changqing.li at windriver.com>
    Acked-by: Christophe Fergeau <cfergeau at redhat.com>

diff --git a/server/red-replay-qxl.c b/server/red-replay-qxl.c
index 1fce76cb..bd33b581 100644
--- a/server/red-replay-qxl.c
+++ b/server/red-replay-qxl.c
@@ -266,7 +266,7 @@ static replay_t read_binary(SpiceReplay *replay, const char *prefix, size_t *siz
             exit(1);
         }
         if ((ret = inflate(&strm, Z_NO_FLUSH)) != Z_STREAM_END) {
-            spice_error("inflate error %d (disc: %" PRIdPTR ")", ret, *size - strm.total_out);
+            spice_error("inflate error %d (disc: %ld)", ret, *size - strm.total_out);
             if (ret == Z_DATA_ERROR) {
                 /* last operation may be wrong. since we do the recording
                  * in red_worker, when there is a shutdown from the vcpu/io thread


More information about the Spice-commits mailing list