Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 May 2011 21:38:33 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Poul-Henning Kamp <phk@FreeBSD.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r221993 - in head/sys: kern sys
Message-ID:  <20110516193833.GA2020@garage.freebsd.pl>
In-Reply-To: <201105161618.p4GGIeDd089851@svn.freebsd.org>
References:  <201105161618.p4GGIeDd089851@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--9amGYk9869ThD9tj
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, May 16, 2011 at 04:18:40PM +0000, Poul-Henning Kamp wrote:
> Author: phk
> Date: Mon May 16 16:18:40 2011
> New Revision: 221993
> URL: http://svn.freebsd.org/changeset/base/221993
>=20
> Log:
>   Change the length quantities of sbufs to be ssize_t rather than int.
>  =20
>   Constify a couple of arguments.
>=20
> Modified:
>   head/sys/kern/subr_sbuf.c
>   head/sys/sys/sbuf.h
>=20
> Modified: head/sys/kern/subr_sbuf.c
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
> --- head/sys/kern/subr_sbuf.c	Mon May 16 15:59:50 2011	(r221992)
> +++ head/sys/kern/subr_sbuf.c	Mon May 16 16:18:40 2011	(r221993)
> @@ -94,7 +94,8 @@ _assert_sbuf_integrity(const char *fun,=20
>  	KASSERT(s->s_buf !=3D NULL,
>  	    ("%s called with uninitialized or corrupt sbuf", fun));
>  	KASSERT(s->s_len < s->s_size,
> -	    ("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.

--=20
Pawel Jakub Dawidek                       http://www.wheelsystems.com
FreeBSD committer                         http://www.FreeBSD.org
Am I Evil? Yes, I Am!                     http://yomoli.com

--9amGYk9869ThD9tj
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iEYEARECAAYFAk3RfTkACgkQForvXbEpPzSyBgCgvZzTCNA2wXUn00ySLXqQY4s8
zUMAni1QLMW/QGk/hOimxV/zx5Z8zKxj
=dQt2
-----END PGP SIGNATURE-----

--9amGYk9869ThD9tj--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110516193833.GA2020>