From 78a6f0419995f0ea761a0d50e9398b1fc9db8fbf Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Thu, 11 Feb 1999 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1999-02-11 --- port/alloc.c | 2 +- port/devmntstats.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/port/alloc.c b/port/alloc.c index dd0b55c0bd5757b5d216347aa2a8f52a5fd08c59..4bf2546b79c8049a0a22d1053ff13f435352e7c4 100644 --- a/port/alloc.c +++ b/port/alloc.c @@ -254,7 +254,7 @@ poolalloc(Pool *p, long size) } iunlock(&p->l); - print("%s arena too large: size %d cursize %lud arenasize %lud maxsize %lud\n", + print("%s arena too large: size %ld cursize %lud arenasize %lud maxsize %lud\n", p->name, size, p->cursize, p->arenasize, p->maxsize); return nil; } diff --git a/port/devmntstats.c b/port/devmntstats.c index 40194b435ccc4eb41daec9fd5359148810fb529f..f4cfbc545632ac3269e0bffd56c839f236f839d0 100644 --- a/port/devmntstats.c +++ b/port/devmntstats.c @@ -45,7 +45,6 @@ _mntstats(int type, Chan *c, uvlong start, ulong bytes) uint h; Mntstats **l, *m; uvlong elapsed; - ulong x; elapsed = fastticks(nil) - start; type -= Tnop; @@ -82,7 +81,6 @@ _mntstats(int type, Chan *c, uvlong start, ulong bytes) m->hi[type] = elapsed; m->tot[type] += elapsed; m->n[type]++; - x = elapsed; m->bytes[type] += bytes; if(bytes >= 8*1024){