The following reply was made to PR kern/144584; it has been noted by GNATS.
From: Alexander Leidinger <alexan...@leidinger.net> To: bug-follo...@freebsd.org, petr.salin...@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 _______________________________________________ freebsd-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"