From: Ben Pfaff Date: Wed, 29 Sep 2004 15:51:13 +0000 (+0000) Subject: Fix printf() format specifier. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9bd85496b98a3cc5ab79701644f73be7d910890;p=pintos-anon Fix printf() format specifier. --- diff --git a/src/threads/palloc.c b/src/threads/palloc.c index cec2bac..c99abe3 100644 --- a/src/threads/palloc.c +++ b/src/threads/palloc.c @@ -170,7 +170,7 @@ init_pool (struct pool *p, void *base, size_t page_cnt, const char *name) PANIC ("Not enough memory in %s for bitmap.", name); page_cnt -= bm_pages; - printf ("%d pages available in %s.\n", page_cnt, name); + printf ("%zu pages available in %s.\n", page_cnt, name); /* Initialize the pool. */ lock_init (&p->lock, name);