From owner-svn-src-all@FreeBSD.ORG Fri Sep 3 16:12:40 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4E5BD1065855; Fri, 3 Sep 2010 16:12:40 +0000 (UTC) (envelope-from mdf@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 3DFC98FC1E; Fri, 3 Sep 2010 16:12:40 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o83GCegg054582; Fri, 3 Sep 2010 16:12:40 GMT (envelope-from mdf@svn.freebsd.org) Received: (from mdf@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o83GCew1054580; Fri, 3 Sep 2010 16:12:40 GMT (envelope-from mdf@svn.freebsd.org) Message-Id: <201009031612.o83GCew1054580@svn.freebsd.org> From: Matthew D Fleming Date: Fri, 3 Sep 2010 16:12:40 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r212181 - head/sys/kern X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2010 16:12:40 -0000 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); }