From: Ben Gras Date: Fri, 9 Sep 2011 16:32:13 +0000 (+0000) Subject: ext2: replace debug printf by assert X-Git-Tag: v3.2.0~310 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/mult.png?a=commitdiff_plain;h=98233fa1446978d8251996dfbc3e6b64b136b450;p=minix.git ext2: replace debug printf by assert --- diff --git a/servers/ext2/super.c b/servers/ext2/super.c index 45ab48d2f..fd2b5d97a 100644 --- a/servers/ext2/super.c +++ b/servers/ext2/super.c @@ -11,6 +11,7 @@ #include "fs.h" #include #include +#include #include #include #include "buf.h" @@ -90,8 +91,7 @@ register struct super_block *sp; /* pointer to a superblock */ if (!sp || !ondisk_superblock) panic("can't allocate memory for super_block buffers"); - printf("ext2: reading %d bytes into %d buffer\n", _MIN_BLOCK_SIZE, sizeof(*ondisk_superblock)); - + assert(_MIN_BLOCK_SIZE <= sizeof(*ondisk_superblock)); r = block_dev_io(MFS_DEV_READ, dev, SELF_E, (char*) ondisk_superblock, cvu64(super_block_offset), _MIN_BLOCK_SIZE);