From: Ben Pfaff Date: Wed, 29 Sep 2004 01:03:37 +0000 (+0000) Subject: %zd -> %zu X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f5f7cb024e74d96e9175a0f9e59557148f9a0a4;p=pintos-anon %zd -> %zu --- diff --git a/src/devices/disk.c b/src/devices/disk.c index a3f26cf..206f69c 100644 --- a/src/devices/disk.c +++ b/src/devices/disk.c @@ -109,7 +109,7 @@ disk_init (void) int dev_no; /* Initialize channel. */ - snprintf (c->name, sizeof c->name, "hd%zd", chan_no); + snprintf (c->name, sizeof c->name, "hd%zu", chan_no); switch (chan_no) { case 0: diff --git a/src/filesys/inode.c b/src/filesys/inode.c index d4d741e..1535c7a 100644 --- a/src/filesys/inode.c +++ b/src/filesys/inode.c @@ -217,7 +217,7 @@ inode_print (const struct inode *idx) { size_t i; - printf ("Inode %"PRDSNu": %"PRDSNu" bytes, %zd sectors (", + printf ("Inode %"PRDSNu": %"PRDSNu" bytes, %zu sectors (", idx->sector, idx->data.length, idx->data.sector_cnt); /* This loop could be unsafe for large idx->data.sector_cnt, can diff --git a/src/threads/init.c b/src/threads/init.c index 9347ad4..ef67071 100644 --- a/src/threads/init.c +++ b/src/threads/init.c @@ -74,7 +74,7 @@ main (void) console_init (); /* Greet user. */ - printf ("Pintos booting with %'zd kB RAM...\n", ram_pages * PGSIZE / 1024); + printf ("Pintos booting with %'zu kB RAM...\n", ram_pages * PGSIZE / 1024); /* Parse command line. */ argv_init ();