Fix a printf, well, actually break it, that is...
We don't have the ability to print 64bit things yet...
This commit is contained in:
parent
80fe9dce33
commit
34a97f9682
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)kern_resource.c 8.5 (Berkeley) 1/21/94
|
||||
* $Id: kern_resource.c,v 1.16 1995/11/12 06:42:59 bde Exp $
|
||||
* $Id: kern_resource.c,v 1.17 1995/12/07 12:46:48 davidg Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -470,15 +470,15 @@ getrlimit(p, uap, retval)
|
||||
*/
|
||||
void
|
||||
calcru(p, up, sp, ip)
|
||||
register struct proc *p;
|
||||
register struct timeval *up;
|
||||
register struct timeval *sp;
|
||||
register struct timeval *ip;
|
||||
struct proc *p;
|
||||
struct timeval *up;
|
||||
struct timeval *sp;
|
||||
struct timeval *ip;
|
||||
{
|
||||
register quad_t totusec;
|
||||
register u_quad_t u, st, ut, it, tot;
|
||||
register long sec, usec;
|
||||
register int s;
|
||||
quad_t totusec;
|
||||
u_quad_t u, st, ut, it, tot;
|
||||
long sec, usec;
|
||||
int s;
|
||||
struct timeval tv;
|
||||
|
||||
s = splstatclock();
|
||||
@ -510,7 +510,7 @@ calcru(p, up, sp, ip)
|
||||
}
|
||||
totusec = (quad_t)sec * 1000000 + usec;
|
||||
if (totusec < 0) {
|
||||
printf("calcru: negative time: %qd usec\n", totusec);
|
||||
printf("calcru: negative time: %d usec\n", totusec);
|
||||
totusec = 0;
|
||||
}
|
||||
u = totusec;
|
||||
|
Loading…
x
Reference in New Issue
Block a user