From owner-svn-src-head@FreeBSD.ORG Mon May 16 21:47:42 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5EB29106564A; Mon, 16 May 2011 21:47:42 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 359BB8FC1D; Mon, 16 May 2011 21:47:42 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id C824346B0A; Mon, 16 May 2011 17:47:41 -0400 (EDT) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 3D8018A050; Mon, 16 May 2011 17:47:41 -0400 (EDT) From: John Baldwin To: "Poul-Henning Kamp" Date: Mon, 16 May 2011 17:47:40 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110325; KDE/4.5.5; amd64; ; ) References: <20914.1305577631@critter.freebsd.dk> In-Reply-To: <20914.1305577631@critter.freebsd.dk> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201105161747.40824.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Mon, 16 May 2011 17:47:41 -0400 (EDT) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Pawel Jakub Dawidek Subject: Re: svn commit: r221993 - in head/sys: kern sys X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 May 2011 21:47:42 -0000 On Monday, May 16, 2011 4:27:11 pm Poul-Henning Kamp wrote: > In message <20110516193833.GA2020@garage.freebsd.pl>, Pawel Jakub Dawidek write > s: > > >> - ("wrote past end of sbuf (%d >=3D %d)", s->s_len, s->s_size)); > >> + ("wrote past end of sbuf (%jd >=3D %jd)", > >> + (intmax_t)s->s_len, (intmax_t)s->s_size)); > > > >For ssize_t we have %zd. > > Yes I know, but sbufs are used on platforms where %z is not available > so I prefer to use %jd, in particular since this is only assert strings. Really? They have %j but not %z? intmax_t is newer than size_t. -- John Baldwin