From: Philippe Waroquiers Date: Sun, 17 May 2015 18:37:14 +0000 (+0000) Subject: Avoid warning about %d and long int X-Git-Tag: svn/VALGRIND_3_11_0~372 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66d85f81b3c19259f7abb06e61d30e004ffda34d;p=thirdparty%2Fvalgrind.git Avoid warning about %d and long int git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15252 --- diff --git a/coregrind/m_gdbserver/remote-utils.c b/coregrind/m_gdbserver/remote-utils.c index f5f31c1e65..978e07c8b3 100644 --- a/coregrind/m_gdbserver/remote-utils.c +++ b/coregrind/m_gdbserver/remote-utils.c @@ -868,7 +868,7 @@ int putpkt_binary (char *buf, int cnt) *tr++ = 0; dlog(3, "putpkt (\"%s\"); (%slen %d) %s\n", tracebuf, strlen(tracebuf) == p - buf2 ? "binary " : "", - p - buf2, + (int)(p - buf2), noack_mode ? "[no ack]" : "[looking for ack]"); free (tracebuf); }