mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-10 18:53:18 +00:00
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@windriver.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
parent
99b08f0dd2
commit
fea0c0c16f
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user