From a7364dbb32e60b723a85144c7afe6af7e0da72bc Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 3 Oct 1999 10:23:15 +0000 Subject: 1999-10-03 Roland McGrath * 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. --- ext2fs/dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext2fs/dir.c') 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; -- cgit v1.2.3