From owner-svn-src-all@FreeBSD.ORG Thu Apr 16 05:52:48 2009 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 51EAA106564A; Thu, 16 Apr 2009 05:52:48 +0000 (UTC) (envelope-from marcel@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 410398FC0A; Thu, 16 Apr 2009 05:52:48 +0000 (UTC) (envelope-from marcel@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n3G5qm1X069963; Thu, 16 Apr 2009 05:52:48 GMT (envelope-from marcel@svn.freebsd.org) Received: (from marcel@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n3G5qmGc069962; Thu, 16 Apr 2009 05:52:48 GMT (envelope-from marcel@svn.freebsd.org) Message-Id: <200904160552.n3G5qmGc069962@svn.freebsd.org> From: Marcel Moolenaar Date: Thu, 16 Apr 2009 05:52:48 +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: r191134 - head/sys/geom/part 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: Thu, 16 Apr 2009 05:52:48 -0000 Author: marcel Date: Thu Apr 16 05:52:47 2009 New Revision: 191134 URL: http://svn.freebsd.org/changeset/base/191134 Log: Precision '*' expects an int and strlen() returns a size_t. Compensate. Modified: head/sys/geom/part/g_part_ebr.c Modified: head/sys/geom/part/g_part_ebr.c ============================================================================== --- head/sys/geom/part/g_part_ebr.c Thu Apr 16 04:05:39 2009 (r191133) +++ head/sys/geom/part/g_part_ebr.c Thu Apr 16 05:52:47 2009 (r191134) @@ -324,7 +324,7 @@ g_part_ebr_fullname(struct g_part_table break; idx++; } - sbuf_printf(sb, "%.*s%u", strlen(pfx) - 1, pfx, idx); + sbuf_printf(sb, "%.*s%u", (int)strlen(pfx) - 1, pfx, idx); } #endif