projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix "%d"s that should be "%zu"s.
[pintos-anon]
/
grading
/
userprog
/
write-boundary.c
diff --git
a/grading/userprog/write-boundary.c
b/grading/userprog/write-boundary.c
index a31dad064feeb9c9aa9ce995108ff32f1252734d..860e2a278c56ddb5ed7f014708215955fa772ba3 100644
(file)
--- a/
grading/userprog/write-boundary.c
+++ b/
grading/userprog/write-boundary.c
@@
-30,7
+30,7
@@
main (void)
byte_cnt = write (handle, sample_p, sizeof sample - 1);
if (byte_cnt != sizeof sample - 1)
byte_cnt = write (handle, sample_p, sizeof sample - 1);
if (byte_cnt != sizeof sample - 1)
- printf ("(write-boundary) fail: write() returned %d instead of %
d
\n",
+ printf ("(write-boundary) fail: write() returned %d instead of %
zu
\n",
byte_cnt, sizeof sample - 1);
printf ("(write-boundary) end\n");
byte_cnt, sizeof sample - 1);
printf ("(write-boundary) end\n");