From owner-svn-src-stable-8@FreeBSD.ORG Wed Aug 10 08:53:34 2011 Return-Path: Delivered-To: svn-src-stable-8@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 43C59106566B; Wed, 10 Aug 2011 08:53:34 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 33C288FC18; Wed, 10 Aug 2011 08:53:34 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p7A8rYPY033321; Wed, 10 Aug 2011 08:53:34 GMT (envelope-from delphij@svn.freebsd.org) Received: (from delphij@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p7A8rYKN033319; Wed, 10 Aug 2011 08:53:34 GMT (envelope-from delphij@svn.freebsd.org) Message-Id: <201108100853.p7A8rYKN033319@svn.freebsd.org> From: Xin LI Date: Wed, 10 Aug 2011 08:53:34 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r224754 - stable/8/usr.bin/gcore X-BeenThere: svn-src-stable-8@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 8-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Aug 2011 08:53:34 -0000 Author: delphij Date: Wed Aug 10 08:53:33 2011 New Revision: 224754 URL: http://svn.freebsd.org/changeset/base/224754 Log: MFC r223924: Match size_t and ssize_t by using %zu and %zd instead of %d. Modified: stable/8/usr.bin/gcore/elfcore.c Directory Properties: stable/8/usr.bin/gcore/ (props changed) Modified: stable/8/usr.bin/gcore/elfcore.c ============================================================================== --- stable/8/usr.bin/gcore/elfcore.c Wed Aug 10 08:52:27 2011 (r224753) +++ stable/8/usr.bin/gcore/elfcore.c Wed Aug 10 08:53:33 2011 (r224754) @@ -183,7 +183,7 @@ elf_coredump(int efd __unused, int fd, p ptrace(PT_IO, pid, (caddr_t)&iorequest, 0); ngot = iorequest.piod_len; if ((size_t)ngot < nwant) - errx(1, "short read wanted %d, got %d", + errx(1, "short read wanted %zu, got %zd", nwant, ngot); ngot = write(fd, buf, nwant); if (ngot == -1)