From owner-cvs-src@FreeBSD.ORG Sun May 11 23:14:07 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B4B391065678; Sun, 11 May 2008 23:14:07 +0000 (UTC) (envelope-from rpaulo@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 8D27B8FC0C; Sun, 11 May 2008 23:14:07 +0000 (UTC) (envelope-from rpaulo@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m4BNE7do027390; Sun, 11 May 2008 23:14:07 GMT (envelope-from rpaulo@repoman.freebsd.org) Received: (from rpaulo@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m4BNE7Tx027389; Sun, 11 May 2008 23:14:07 GMT (envelope-from rpaulo) Message-Id: <200805112314.m4BNE7Tx027389@repoman.freebsd.org> From: Rui Paulo Date: Sun, 11 May 2008 23:14:07 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/dev/k8temp k8temp.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 May 2008 23:14:07 -0000 rpaulo 2008-05-11 23:14:07 UTC FreeBSD src repository Modified files: sys/dev/k8temp k8temp.c Log: Don't use libkern's max() function as that's for unsigned numbers only. Instead use the worldwide known MAX() function. This should fix problems with negative values showing up on dev.cpu.%d.temperature. This is slightly different from the fix in the PR. Submitted by: KOIE Hidetaka PR: 123542 Revision Changes Path 1.3 +2 -2 src/sys/dev/k8temp/k8temp.c