From owner-cvs-src@FreeBSD.ORG Thu Apr 10 16:17:56 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 7BE61106564A; Thu, 10 Apr 2008 16:17:56 +0000 (UTC) (envelope-from ru@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 534B98FC14; Thu, 10 Apr 2008 16:17:56 +0000 (UTC) (envelope-from ru@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 m3AGHuTF094895; Thu, 10 Apr 2008 16:17:56 GMT (envelope-from ru@repoman.freebsd.org) Received: (from ru@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m3AGHshI094894; Thu, 10 Apr 2008 16:17:54 GMT (envelope-from ru) Message-Id: <200804101617.m3AGHshI094894@repoman.freebsd.org> From: Ruslan Ermilov Date: Thu, 10 Apr 2008 16:17:54 +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/usr.bin/top machine.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: Thu, 10 Apr 2008 16:17:56 -0000 ru 2008-04-10 16:17:54 UTC FreeBSD src repository Modified files: usr.bin/top machine.c Log: Fix "top -P" (`&' mistyped as `&&' and a botched logic). The bug was unnoticed on non-i386 because mp_maxid is initialized differently, kern.cp_times doesn't print zeroes for non-existing CPUs, so no "writing outside of array bounds" happens. MFC after: 3 days Revision Changes Path 1.87 +3 -2 src/usr.bin/top/machine.c