From owner-freebsd-bugs@FreeBSD.ORG Fri Mar 26 10:00:14 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 11DAE106564A for ; Fri, 26 Mar 2010 10:00:14 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E3EE98FC15 for ; Fri, 26 Mar 2010 10:00:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o2QA0DZw024463 for ; Fri, 26 Mar 2010 10:00:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o2QA0DAm024462; Fri, 26 Mar 2010 10:00:13 GMT (envelope-from gnats) Date: Fri, 26 Mar 2010 10:00:13 GMT Message-Id: <201003261000.o2QA0DAm024462@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Alexander Leidinger Cc: Subject: Re: kern/144584: [linprocfs][patch] bogus values in linprocfs X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alexander Leidinger List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Mar 2010 10:00:14 -0000 The following reply was made to PR kern/144584; it has been noted by GNATS. From: Alexander Leidinger To: bug-followup@FreeBSD.org, Petr.Salinger@seznam.cz Cc: Subject: Re: kern/144584: [linprocfs][patch] bogus values in linprocfs Date: Fri, 26 Mar 2010 10:39:54 +0100 Hi, mp_maxid needs to be proteced with "#ifdef SMP". The following gives an error in a 32bit compile, either cast i to long, or (probably better) change the type in the printf to int. ---snip--- sbuf_printf(sb, "%lld.%02ld %ld.%02ld\n", (long long)tv.tv_sec, tv.tv_usec / 10000, - T2S(cp_time[CP_IDLE]), T2J(cp_time[CP_IDLE]) % 100); + T2S((cp_time[CP_IDLE]/cnt)), i); ---snip--- Bye, Alexander. -- On SECOND thought, maybe I'll heat up some BAKED BEANS and watch REGIS PHILBIN ... It's GREAT to be ALIVE!! http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137