Re: [Qemu-devel] [PATCH] curl: Cast fd to int for DPRINTF

2016-08-09 Thread Fam Zheng
On Mon, 08/01 13:04, Fam Zheng wrote: > Currently "make docker-test-mingw@fedora" has a warning like: > > /tmp/qemu-test/src/block/curl.c: In function 'curl_sock_cb': > /tmp/qemu-test/src/block/curl.c:172:6: warning: format '%d' expects > argument of type 'int', but argument 4 has type

Re: [Qemu-devel] [PATCH] curl: Cast fd to int for DPRINTF

2016-08-01 Thread John Snow
On 08/01/2016 09:09 PM, Fam Zheng wrote: On Mon, 08/01 12:41, John Snow wrote: -DPRINTF("CURL (AIO): Sock action %d on fd %d\n", action, fd); +DPRINTF("CURL (AIO): Sock action %d on fd %d\n", action, (int)fd); switch (action) { case CURL_POLL_IN: aio_set_fd_h

Re: [Qemu-devel] [PATCH] curl: Cast fd to int for DPRINTF

2016-08-01 Thread Fam Zheng
On Mon, 08/01 12:41, John Snow wrote: > > -DPRINTF("CURL (AIO): Sock action %d on fd %d\n", action, fd); > > +DPRINTF("CURL (AIO): Sock action %d on fd %d\n", action, (int)fd); > > switch (action) { > > case CURL_POLL_IN: > > aio_set_fd_handler(s->aio_context, fd,

Re: [Qemu-devel] [PATCH] curl: Cast fd to int for DPRINTF

2016-08-01 Thread John Snow
On 08/01/2016 01:04 AM, Fam Zheng wrote: Currently "make docker-test-mingw@fedora" has a warning like: /tmp/qemu-test/src/block/curl.c: In function 'curl_sock_cb': /tmp/qemu-test/src/block/curl.c:172:6: warning: format '%d' expects argument of type 'int', but argument 4 has type 'c

[Qemu-devel] [PATCH] curl: Cast fd to int for DPRINTF

2016-07-31 Thread Fam Zheng
Currently "make docker-test-mingw@fedora" has a warning like: /tmp/qemu-test/src/block/curl.c: In function 'curl_sock_cb': /tmp/qemu-test/src/block/curl.c:172:6: warning: format '%d' expects argument of type 'int', but argument 4 has type 'curl_socket_t {aka long long unsigned int}