svn commit: r221993 - in head/sys: kern sys

Pawel Jakub Dawidek pjd at FreeBSD.org
Mon May 16 19:39:03 UTC 2011


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-head/attachments/20110516/a2310a5d/attachment.pgp


More information about the svn-src-head mailing list