[kernel][novm] fix a warning that only shows up on vax

This commit is contained in:
Travis Geiselbrecht
2019-10-17 22:49:45 -07:00
parent 744ceef721
commit 2760056b4b

View File

@@ -281,7 +281,7 @@ static void novm_dump_arena(struct novm_arena *n) {
}
mutex_acquire(&n->lock);
printf("name '%s', %d pages, each %zdk (%zdk in all)\n", n->name, n->pages, PAGE_SIZE >> 10, (PAGE_SIZE * n->pages) >> 10);
printf("name '%s', %zd pages, each %zdk (%zdk in all)\n", n->name, n->pages, (size_t)PAGE_SIZE >> 10, (PAGE_SIZE * n->pages) >> 10);
printf(" range: %p-%p\n", (void *)n->base, (char *)n->base + n->size);
printf(" unaligned range: %p-%p\n", n->unaligned_area, n->unaligned_area + n->unaligned_size);
unsigned i;