1
0
mirror of https://github.com/golang/go synced 2024-11-27 00:21:21 -07:00

[dev.garbage] runtime: Fix 386 compiler warnings.

LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/163390043
This commit is contained in:
Rick Hudson 2014-10-27 17:07:53 -04:00
parent 0f66d785cf
commit 5550249ad3

View File

@ -632,7 +632,7 @@ getempty(Workbuf *b)
b = (Workbuf*)runtime·lfstackpop(&runtime·work.empty);
if(b && b->nobj != 0) {
runtime·printf("m%d: getempty: popped b=%p with non-zero b->nobj=%D\n", g->m->id, b, b->nobj);
runtime·printf("m%d: getempty: popped b=%p with non-zero b->nobj=%d\n", g->m->id, b, (uint32)b->nobj);
runtime·throw("getempty: workbuffer not empty, b->nobj not 0");
}
if(b == nil) {
@ -687,7 +687,7 @@ putpartial(Workbuf *b)
else if (b->nobj == nelem(b->obj))
runtime·lfstackpush(&runtime·work.full, &b->node);
else {
runtime·printf("b=%p, b->nobj=%D, nelem(b->obj)=%d\n", b, b->nobj, nelem(b->obj));
runtime·printf("b=%p, b->nobj=%d, nelem(b->obj)=%d\n", b, b->nobj, (uint32)nelem(b->obj));
runtime·throw("putpartial: bad Workbuf b->nobj");
}
}