From: Jens Axboe Date: Fri, 30 Aug 2013 16:13:36 +0000 (-0600) Subject: client: fix compile warning on platforms where pfds->fd is not an int X-Git-Tag: fio-2.1.3~9 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=65e1a120131f069fda859498ff4565a9b6e16dc2;p=fio.git client: fix compile warning on platforms where pfds->fd is not an int It's apparently a long on some platforms. Signed-off-by: Jens Axboe --- diff --git a/client.c b/client.c index 155eb720..b20d6dc2 100644 --- a/client.c +++ b/client.c @@ -1462,7 +1462,7 @@ int fio_handle_clients(struct client_ops *ops) client = find_client_by_fd(pfds[i].fd); if (!client) { - log_err("fio: unknown client fd %d\n", pfds[i].fd); + log_err("fio: unknown client fd %ld\n", (long) pfds[i].fd); continue; } if (!fio_handle_client(client)) {