From owner-svn-src-all@FreeBSD.ORG Mon Nov 15 23:38:53 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 295B1106567A; Mon, 15 Nov 2010 23:38:53 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 181B48FC13; Mon, 15 Nov 2010 23:38:53 +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 oAFNcqxT032300; Mon, 15 Nov 2010 23:38:52 GMT (envelope-from jkim@svn.freebsd.org) Received: (from jkim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id oAFNcqjG032298; Mon, 15 Nov 2010 23:38:52 GMT (envelope-from jkim@svn.freebsd.org) Message-Id: <201011152338.oAFNcqjG032298@svn.freebsd.org> From: Jung-uk Kim Date: Mon, 15 Nov 2010 23:38:52 +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: r215355 - head/sys/dev/mii 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: Mon, 15 Nov 2010 23:38:53 -0000 Author: jkim Date: Mon Nov 15 23:38:52 2010 New Revision: 215355 URL: http://svn.freebsd.org/changeset/base/215355 Log: Restore the previous behaviour of substring match. Modified: head/sys/dev/mii/brgphy.c Modified: head/sys/dev/mii/brgphy.c ============================================================================== --- head/sys/dev/mii/brgphy.c Mon Nov 15 23:14:14 2010 (r215354) +++ head/sys/dev/mii/brgphy.c Mon Nov 15 23:38:52 2010 (r215355) @@ -160,7 +160,8 @@ detect_hs21(struct bce_softc *bce_sc) if (bce_sc->bce_chipid == HS21_BCM_CHIPID) { sysenv = getenv("smbios.system.product"); if (sysenv != NULL) { - if (strcmp(sysenv, HS21_PRODUCT_ID) == 0) + if (strncmp(sysenv, HS21_PRODUCT_ID, + strlen(HS21_PRODUCT_ID)) == 0) found = 1; freeenv(sysenv); }