]> Zhao Yanbai Git Server - minix.git/commitdiff
ext2: resolve Coverity warnings
authorDavid van Moolenbroek <david@minix3.org>
Mon, 13 Aug 2012 16:37:26 +0000 (16:37 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Tue, 14 Aug 2012 09:11:19 +0000 (09:11 +0000)
servers/ext2/super.c

index 317a55a04ffae4f3737f97784790fda077711e24..7edab339c3eb382c587bf26ba2b4f72877210ed8 100644 (file)
@@ -109,8 +109,8 @@ register struct super_block *sp; /* pointer to a superblock */
 
   if (sp->s_block_size < _MIN_BLOCK_SIZE
       || sp->s_block_size >_MAX_BLOCK_SIZE) {
+       printf("data block size (%u) is invalid\n", sp->s_block_size);
        return(EINVAL);
-       printf("data block size is too large\n");
   }
 
   if ((sp->s_block_size % 512) != 0)