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

Alexander Leidinger Alexander at
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>
To: bug-followup at, Petr.Salinger at
Subject: Re: kern/144584: [linprocfs][patch] bogus values in linprocfs
Date: Fri, 26 Mar 2010 10:39:54 +0100

 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.
           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);
 On SECOND thought, maybe I'll heat up some BAKED BEANS and watch REGIS
 PHILBIN ...  It's GREAT to be ALIVE!!    Alexander @ PGP ID = B0063FE7       netchild @  : PGP ID = 72077137

More information about the freebsd-bugs mailing list