From 944b0b46d7613eeea93b4af6cfb80204ebc37abb Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 23 May 1999 17:36:26 +0000 Subject: 1999-05-19 Roland McGrath * ext2fs.c (main): Include store size in panic msg when it's too small. --- ext2fs/ext2fs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext2fs/ext2fs.c') diff --git a/ext2fs/ext2fs.c b/ext2fs/ext2fs.c index aac4d7bc..584e14ba 100644 --- a/ext2fs/ext2fs.c +++ b/ext2fs/ext2fs.c @@ -1,6 +1,6 @@ /* Main entry point for the ext2 file system translator - Copyright (C) 1994, 95, 96, 97, 98 Free Software Foundation, Inc. + Copyright (C) 1994, 95, 96, 97, 98, 99 Free Software Foundation, Inc. Converted for ext2fs by Miles Bader @@ -144,7 +144,7 @@ main (int argc, char **argv) &store_parsed, &bootstrap); if (store->size < SBLOCK_OFFS + SBLOCK_SIZE) - ext2_panic ("superblock won't fit on the device!"); + ext2_panic ("device too small for superblock (%ld bytes)", store->size); if (store->log2_blocks_per_page < 0) ext2_panic ("device block size (%u) greater than page size (%d)", store->block_size, vm_page_size); -- cgit v1.2.3