diff options
author | Svante Signell <svante.signell@gmail.com> | 2023-01-19 00:51:33 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-01-19 00:51:33 +0100 |
commit | bf721cfb73ffcf887d4e33a9338789bd56281f79 (patch) | |
tree | 3e45e819259966a15c632974cc92cf43c4036a88 /ext2fs | |
parent | 8fa6ecf56293bdc4b5a29994a389c7dce4038917 (diff) | |
download | hurd-bf721cfb73ffcf887d4e33a9338789bd56281f79.tar.gz hurd-bf721cfb73ffcf887d4e33a9338789bd56281f79.tar.bz2 hurd-bf721cfb73ffcf887d4e33a9338789bd56281f79.zip |
Fix some compiler warnings
Diffstat (limited to 'ext2fs')
-rw-r--r-- | ext2fs/dir.c | 2 | ||||
-rw-r--r-- | ext2fs/ext2fs.c | 2 | ||||
-rw-r--r-- | ext2fs/pager.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/ext2fs/dir.c b/ext2fs/dir.c index c7c3018b..e4ccadee 100644 --- a/ext2fs/dir.c +++ b/ext2fs/dir.c @@ -417,7 +417,7 @@ dirscanblock (vm_address_t blockaddr, struct node *dp, int idx, { ext2_warning ("bad directory entry: inode: %Ld offset: %lu", dp->cache_id, - currentoff - blockaddr + idx * DIRBLKSIZ); + (unsigned long)(currentoff - blockaddr + idx * DIRBLKSIZ)); return ENOENT; } diff --git a/ext2fs/ext2fs.c b/ext2fs/ext2fs.c index 5beb3906..14952d7d 100644 --- a/ext2fs/ext2fs.c +++ b/ext2fs/ext2fs.c @@ -233,7 +233,7 @@ main (int argc, char **argv) ext2_panic ("device too small for superblock (%Ld bytes)", store->size); if (store->log2_blocks_per_page < 0) ext2_panic ("device block size (%zu) greater than page size (%lu)", - store->block_size, vm_page_size); + store->block_size, (unsigned long)vm_page_size); /* Map the entire disk. */ create_disk_pager (); diff --git a/ext2fs/pager.c b/ext2fs/pager.c index 00544cfb..fca5aa8c 100644 --- a/ext2fs/pager.c +++ b/ext2fs/pager.c @@ -643,7 +643,7 @@ pager_unlock_page (struct user_pager_info *pager, vm_offset_t page) ext2_warning ("This filesystem is out of space."); else if (err) ext2_warning ("inode=%Ld, page=0x%lx: %s", - node->cache_id, page, strerror (err)); + node->cache_id, (unsigned long)page, strerror (err)); return err; } @@ -906,7 +906,7 @@ disk_cache_init (void) { if (block_size != vm_page_size) ext2_panic ("Block size %u != vm_page_size %lu", - block_size, vm_page_size); + block_size, (unsigned long)vm_page_size); pthread_mutex_init (&disk_cache_lock, NULL); pthread_cond_init (&disk_cache_reassociation, NULL); |