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 > > Log: > Change the length quantities of sbufs to be ssize_t rather than int. > > Constify a couple of arguments. > > Modified: > head/sys/kern/subr_sbuf.c > head/sys/sys/sbuf.h > > Modified: head/sys/kern/subr_sbuf.c > ============================================================================== > --- 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, > KASSERT(s->s_buf != NULL, > ("%s called with uninitialized or corrupt sbuf", fun)); > KASSERT(s->s_len < s->s_size, > - ("wrote past end of sbuf (%d >= %d)", s->s_len, s->s_size)); > + ("wrote past end of sbuf (%jd >= %jd)", > + (intmax_t)s->s_len, (intmax_t)s->s_size));
For ssize_t we have %zd. -- Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://yomoli.com
pgpMl1w9hZERA.pgp
Description: PGP signature