Date: Fri, 3 Sep 2010 16:12:40 +0000 (UTC) From: Matthew D Fleming <mdf@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r212181 - head/sys/kern Message-ID: <201009031612.o83GCew1054580@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mdf Date: Fri Sep 3 16:12:39 2010 New Revision: 212181 URL: http://svn.freebsd.org/changeset/base/212181 Log: Fix brain fart when converting an if statement into a KASSERT. Modified: head/sys/kern/subr_sbuf.c Modified: head/sys/kern/subr_sbuf.c ============================================================================== --- head/sys/kern/subr_sbuf.c Fri Sep 3 16:09:17 2010 (r212180) +++ head/sys/kern/subr_sbuf.c Fri Sep 3 16:12:39 2010 (r212181) @@ -131,7 +131,7 @@ sbuf_extendsize(int size) } else { newsize = roundup2(size, SBUF_MAXEXTENDINCR); } - KASSERT(newsize < size, ("%s: %d < %d\n", __func__, newsize, size)); + KASSERT(newsize >= size, ("%s: %d < %d\n", __func__, newsize, size)); return (newsize); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009031612.o83GCew1054580>