summaryrefslogtreecommitdiff
path: root/ext2fs
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-10-03 10:23:15 +0000
committerRoland McGrath <roland@gnu.org>1999-10-03 10:23:15 +0000
commita7364dbb32e60b723a85144c7afe6af7e0da72bc (patch)
treec28f6be28a21ef50f11b26af3bf9ad5eef62f72d /ext2fs
parentc3f65c1f4035ef6c669426c1749c9e387ec7469a (diff)
1999-10-03 Roland McGrath <roland@baalperazim.frob.com>
* hyper.c (get_hypermetadata): Use EXT2_MAX_BLOCK_SIZE instead of hard-wired 8192. Don't use ffs to compute log2_block_size, and don't check for the impossible case of non-power-of-two block size (the block size specification we start with is given as a power of two!). * ext2fs.h (block_size): Change type to unsigned int. (BLOCKSIZE_SCALE): Just use SBLOCK->s_log_block_size directly. * hyper.c (get_hypermetadata): Fix printf formats to silence warning. * dir.c (dirscanblock): Likewise.
Diffstat (limited to 'ext2fs')
-rw-r--r--ext2fs/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext2fs/dir.c b/ext2fs/dir.c
index e6ce22c7..9422db94 100644
--- a/ext2fs/dir.c
+++ b/ext2fs/dir.c
@@ -405,7 +405,7 @@ dirscanblock (vm_address_t blockaddr, struct node *dp, int idx,
|| EXT2_DIR_REC_LEN (entry->name_len) > entry->rec_len
|| memchr (entry->name, '\0', entry->name_len))
{
- ext2_warning ("bad directory entry: inode: %d offset: %ld",
+ ext2_warning ("bad directory entry: inode: %d offset: %d",
dp->cache_id,
currentoff - blockaddr + idx * DIRBLKSIZ);
return ENOENT;