--- /n/sources/plan9/sys/src/cmd/cwfs/malloc.c Sat Jan 10 10:00:05 2015 +++ /sys/src/cmd/cwfs/malloc.c Sun Jun 28 00:00:00 2026 @@ -11,7 +11,7 @@ Hiob *hiob; * end of the allocated memory. */ void* -ialloc(ulong n, int align) +ialloc(uintptr n, int align) { void *p = mallocalign(n, align, 0, 0); @@ -27,8 +27,8 @@ prbanks(void) Mbank *mbp; for(mbp = mconf.bank; mbp < &mconf.bank[mconf.nbank]; mbp++) - print("bank[%ld]: base 0x%8.8lux, limit 0x%8.8lux (%.0fMB)\n", - mbp - mconf.bank, mbp->base, mbp->limit, + print("bank[%d]: base 0x%8.8lux, limit 0x%8.8lux (%.0fMB)\n", + (int)(mbp - mconf.bank), mbp->base, mbp->limit, (mbp->limit - mbp->base)/(double)MB); } --- /n/sources/plan9/sys/src/cmd/cwfs/portfns.h Sat Jan 10 10:00:05 2015 +++ /sys/src/cmd/cwfs/portfns.h Sun Jun 28 00:00:00 2026 @@ -105,7 +105,7 @@ Chan* getlcp(uchar*, long); Off getraddr(Device*); void hexdump(void*, int); int iaccess(File*, Dentry*, int); -void* ialloc(ulong, int); +void* ialloc(uintptr, int); Off ibbpow(int); Off ibbpowsum(int); Device* iconfig(char *); --- /n/sources/plan9/sys/src/cmd/cwfs/juke.c Sat Jan 10 10:00:05 2015 +++ /sys/src/cmd/cwfs/juke.c Sun Jun 28 00:00:00 2026 @@ -213,7 +213,8 @@ wormunit(Device *d) /* d is l0 or r2 (e.g.) */ qunlock(w); delay(100); } - print("\tload r%ld drive %Z\n", v-w->side, w->drive[drive]); + print("\tload r%lld drive %Z\n", + (vlong)(v - w->side), w->drive[drive]); if(mmove(w, w->mt0, v->elem, w->dt0+drive, v->rot)) { qunlock(w); goto sbad; @@ -395,8 +396,8 @@ loop: qunlock(v); goto loop; } - print("\tunload r%ld drive %Z\n", - v-w->side, w->drive[drive]); + print("\tunload r%lld drive %Z\n", + (vlong)(v - w->side), w->drive[drive]); if(mmove(w, w->mt0, w->dt0+drive, v->elem, v->rot)) { qunlock(v); goto loop; @@ -1314,8 +1315,8 @@ wormprobe(void) continue; if(v->status == Sstart && t > v->time) { drive = v->drive; - print("\ttime r%ld drive %Z\n", - v-w->side, w->drive[drive]); + print("\ttime r%lld drive %Z\n", + (vlong)(v - w->side), w->drive[drive]); mmove(w, w->mt0, w->dt0+drive, v->elem, v->rot); v->status = Sunload; }