Date: Fri, 26 Mar 2010 10:00:13 GMT From: Alexander Leidinger <Alexander@Leidinger.net> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/144584: [linprocfs][patch] bogus values in linprocfs Message-ID: <201003261000.o2QA0DAm024462@freefall.freebsd.org>
index | next in thread | raw e-mail
The following reply was made to PR kern/144584; it has been noted by GNATS.
From: Alexander Leidinger <Alexander@Leidinger.net>
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
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003261000.o2QA0DAm024462>
