Fix "%d"s that should be "%zu"s.
[pintos-anon] / grading / userprog / write-normal.c
index b2e96e86927aa351e6dcb64d1191d937d69c17fa..145d0bf12ec71da8a0fd3aa4e0f8e4467420e691 100644 (file)
@@ -18,7 +18,7 @@ main (void)
 
   byte_cnt = write (handle, sample, sizeof sample - 1);
   if (byte_cnt != sizeof sample - 1)
-    printf ("(write-normal) fail: write() returned %d instead of %d\n",
+    printf ("(write-normal) fail: write() returned %d instead of %zu\n",
             byte_cnt, sizeof sample - 1);
   
   printf ("(write-normal) end\n");