Received: from eggs.gnu.org ([208.118.235.92]:42271) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T90YC-0005ND-Jn for qemu-devel@nongnu.org; Tue, 04 Sep 2012 17:20:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T90YB-0003zZ-No for qemu-devel@nongnu.org; Tue, 04 Sep 2012 17:20:48 -0400 Received: from v220110690675601.yourvserver.net ([78.47.199.172]:42135) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T90YB-0003zV-H6 for qemu-devel@nongnu.org; Tue, 04 Sep 2012 17:20:47 -0400 From: Stefan Weil Date: Tue, 4 Sep 2012 23:20:35 +0200 Message-Id: <1346793636-23689-2-git-send-email-sw@weilnetz.de> In-Reply-To: <1346793636-23689-1-git-send-email-sw@weilnetz.de> References: <1346793636-23689-1-git-send-email-sw@weilnetz.de> Subject: [Qemu-devel] [PATCH 1/2] slirp: Remove wrong type casts ins debug statements List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: peter.maydell@linaro.org, qemu-devel@nongnu.org, Stefan Weil The type casts of pointers to long are not allowed when sizeof(pointer) != sizeof(long). Signed-off-by: Stefan Weil --- slirp/tcp_subr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/slirp/tcp_subr.c b/slirp/tcp_subr.c index 025b374..5890d7a 100644 --- a/slirp/tcp_subr.c +++ b/slirp/tcp_subr.c @@ -114,9 +114,9 @@ tcp_respond(struct tcpcb *tp, struct tcpiphdr *ti, struct mbuf *m, int win = 0; DEBUG_CALL("tcp_respond"); - DEBUG_ARG("tp = %lx", (long)tp); - DEBUG_ARG("ti = %lx", (long)ti); - DEBUG_ARG("m = %lx", (long)m); + DEBUG_ARG("tp = %p", tp); + DEBUG_ARG("ti = %p", ti); + DEBUG_ARG("m = %p", m); DEBUG_ARG("ack = %u", ack); DEBUG_ARG("seq = %u", seq); DEBUG_ARG("flags = %x", flags); -- 1.7.10