kern/144584: [linprocfs][patch] bogus values in linprocfs

Alexander Leidinger Alexander at Leidinger.net
Fri Mar 26 10:00:14 UTC 2010


The following reply was made to PR kern/144584; it has been noted by GNATS.

From: Alexander Leidinger <Alexander at Leidinger.net>
To: bug-followup at FreeBSD.org, Petr.Salinger at 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


More information about the freebsd-bugs mailing list