amd64 fixes

This commit is contained in:
Russ Cox
2006-05-21 16:32:29 +00:00
parent af11a9e129
commit 5797fdc0c0
28 changed files with 116 additions and 66 deletions

View File

@ -96,7 +96,7 @@ padblock(Block *bp, int size)
}
if(bp->next)
panic("padblock 0x%luX", getcallerpc(&bp));
panic("padblock 0x%p", getcallerpc(&bp));
n = BLEN(bp);
padblockcnt++;
nbp = allocb(size+n);
@ -110,7 +110,7 @@ padblock(Block *bp, int size)
size = -size;
if(bp->next)
panic("padblock 0x%luX", getcallerpc(&bp));
panic("padblock 0x%p", getcallerpc(&bp));
if(bp->lim - bp->wp >= size)
return bp;
@ -1270,7 +1270,7 @@ qwrite(Queue *q, void *vp, int len)
uchar *p = vp;
QDEBUG if(!islo())
print("qwrite hi %lux\n", getcallerpc(&q));
print("qwrite hi %p\n", getcallerpc(&q));
sofar = 0;
do {