summaryrefslogtreecommitdiff
path: root/ext2fs
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-06-02 21:40:59 +0000
committerRoland McGrath <roland@gnu.org>2002-06-02 21:40:59 +0000
commitb53c9c8b82b63b06ae3f6d337feebf8d53656bb0 (patch)
treeff39bc894536416549317c6d5deb021cdf7af682 /ext2fs
parent80f99c5c8c5825c80c0f083f9b33d7f6af246b24 (diff)
2002-05-29 Roland McGrath <roland@frob.com>
* dir.c (dirscanblock): Use %z format. (diskfs_get_directs): Likewise. * ext2fs.c (main): Likewise. * hyper.c (get_hypermetadata): Likewise. * pager.c (pager_unlock_page): Likewise.
Diffstat (limited to 'ext2fs')
-rw-r--r--ext2fs/hyper.c6
-rw-r--r--ext2fs/pager.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/ext2fs/hyper.c b/ext2fs/hyper.c
index 02db378e..bee4175f 100644
--- a/ext2fs/hyper.c
+++ b/ext2fs/hyper.c
@@ -1,6 +1,6 @@
/* Fetching and storing the hypermetadata (superblock and bg summary info)
- Copyright (C) 1994,95,96,99,2001 Free Software Foundation, Inc.
+ Copyright (C) 1994,95,96,99,2001,02 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.org>
This program is free software; you can redistribute it and/or
@@ -82,7 +82,7 @@ get_hypermetadata (void)
log2_dev_blocks_per_fs_block = log2_block_size - store->log2_block_size;
if (log2_dev_blocks_per_fs_block < 0)
ext2_panic ("block size %d isn't a power-of-two multiple of the device"
- " block size (%d)!",
+ " block size (%zd)!",
block_size, store->block_size);
log2_stat_blocks_per_fs_block = 0;
@@ -98,7 +98,7 @@ get_hypermetadata (void)
(long long int) sblock->s_blocks_count << log2_block_size);
if (log2_dev_blocks_per_fs_block != 0
&& (store->size & ((1 << log2_dev_blocks_per_fs_block) - 1)) != 0)
- ext2_warning ("%Ld (%d byte) device blocks "
+ ext2_warning ("%Ld (%zd byte) device blocks "
" unused after last filesystem (%d byte) block",
(store->size & ((1 << log2_dev_blocks_per_fs_block) - 1)),
store->block_size, block_size);
diff --git a/ext2fs/pager.c b/ext2fs/pager.c
index 656ba4bb..4e705fea 100644
--- a/ext2fs/pager.c
+++ b/ext2fs/pager.c
@@ -572,7 +572,7 @@ pager_unlock_page (struct user_pager_info *pager, vm_offset_t page)
if (err == ENOSPC)
ext2_warning ("This filesystem is out of space, and will now crash. Bye!");
else if (err)
- ext2_warning ("inode=%d, page=0x%x: %s",
+ ext2_warning ("inode=%d, page=0x%zx: %s",
node->cache_id, page, strerror (err));
return err;