From: Ben Pfaff Date: Tue, 23 Nov 2004 06:50:35 +0000 (+0000) Subject: %d -> %zu. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=138a698717cc15a30d0ff60cddd7bc4d21eb30a1;p=pintos-anon %d -> %zu. --- diff --git a/grading/vm/mmap-shuffle.c b/grading/vm/mmap-shuffle.c index 273bb4e..d576e9a 100644 --- a/grading/vm/mmap-shuffle.c +++ b/grading/vm/mmap-shuffle.c @@ -83,7 +83,7 @@ main (void) for (i = 0; i < 10; i++) { shuffle (); - printf ("(mmap-shuffle) shuffle %d: cksum=%lu\n", + printf ("(mmap-shuffle) shuffle %zu: cksum=%lu\n", i, cksum (buf, SIZE)); } diff --git a/grading/vm/page-merge-par.c b/grading/vm/page-merge-par.c index dd24576..c602d16 100644 --- a/grading/vm/page-merge-par.c +++ b/grading/vm/page-merge-par.c @@ -46,7 +46,7 @@ sort (void) printf ("(page-merge-par) sort chunk %zu\n", i); /* Write this chunk to a file. */ - snprintf (fn, sizeof fn, "buf%d", i); + snprintf (fn, sizeof fn, "buf%zu", i); create (fn, CHUNK_SIZE); fd = open (fn); if (fd < 0) @@ -79,7 +79,7 @@ sort (void) } /* Read chunk back from file. */ - snprintf (fn, sizeof fn, "buf%d", i); + snprintf (fn, sizeof fn, "buf%zu", i); fd = open (fn); if (fd < 0) { diff --git a/grading/vm/page-shuffle.c b/grading/vm/page-shuffle.c index aadcb10..9f65099 100644 --- a/grading/vm/page-shuffle.c +++ b/grading/vm/page-shuffle.c @@ -58,7 +58,7 @@ main (void) for (i = 0; i < 10; i++) { shuffle (); - printf ("(page-shuffle) shuffle %d: cksum=%lu\n", + printf ("(page-shuffle) shuffle %zu: cksum=%lu\n", i, cksum (buf, sizeof buf)); }