From 4397f558b0a4c4acf683deec29de2855738e5496 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Thu, 27 Apr 1995 21:10:20 +0000 Subject: Formerly ialloc.c.~21~ --- ext2fs/ialloc.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/ext2fs/ialloc.c b/ext2fs/ialloc.c index 637692c9..b9b4147f 100644 --- a/ext2fs/ialloc.c +++ b/ext2fs/ialloc.c @@ -59,7 +59,7 @@ diskfs_free_node (struct node *np, mode_t old_mode) assert (!diskfs_readonly); - ext2_debug ("freeing inode %u\n", inum); + ext2_debug ("freeing inode %u", inum); spin_lock (&global_lock); @@ -333,12 +333,14 @@ ext2_count_free_inodes () { gdp = group_desc (i); desc_count += gdp->bg_free_inodes_count; - x = count_free (bptr (gdp->bg_inode_bitmap), sblock->s_inodes_per_group / 8); - printf ("group %d: stored = %d, counted = %lu\n", i, gdp->bg_free_inodes_count, x); + x = count_free (bptr (gdp->bg_inode_bitmap), + sblock->s_inodes_per_group / 8); + ext2_debug ("group %d: stored = %d, counted = %lu", + i, gdp->bg_free_inodes_count, x); bitmap_count += x; } - printf ("ext2_count_free_inodes: stored = %lu, computed = %lu, %lu\n", - sblock->s_free_inodes_count, desc_count, bitmap_count); + ext2_debug ("stored = %lu, computed = %lu, %lu", + sblock->s_free_inodes_count, desc_count, bitmap_count); spin_unlock (&global_lock); return desc_count; #else -- cgit v1.2.3