Use `z' modifier to printf size_t.
[pintos-anon] / src / threads / init.c
index 9ab04476741e4f4580afc15ed454e71e34a237e6..129d7971c4969c6743daf8d77a199ae776811856 100644 (file)
@@ -62,7 +62,7 @@ main (void)
   console_init ();
 
   /* Greet user. */
-  printf ("Pintos booting with %'d kB RAM...\n", ram_pages * (PGSIZE / 1024));
+  printf ("Pintos booting with %'zd kB RAM...\n", ram_pages * (PGSIZE / 1024));
 
   /* Parse command line. */
   argv_init ();