From: Christoph Hellwig Subject: [PATCH 1/11] hfsplus: silence a few debug printks Date: Wed, 17 Nov 2010 23:21:28 +0100 Message-ID: <20101117222128.GB21700@lst.de> References: <20101117222117.GA21700@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: linux-fsdevel@vger.kernel.org Return-path: Received: from verein.lst.de ([213.95.11.210]:38581 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933707Ab0KQWV3 (ORCPT ); Wed, 17 Nov 2010 17:21:29 -0500 Received: from verein.lst.de (localhost [127.0.0.1]) by verein.lst.de (8.12.3/8.12.3/Debian-7.1) with ESMTP id oAHMLS88021737 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Wed, 17 Nov 2010 23:21:28 +0100 Received: (from hch@localhost) by verein.lst.de (8.12.3/8.12.3/Debian-7.2) id oAHMLSPX021736 for linux-fsdevel@vger.kernel.org; Wed, 17 Nov 2010 23:21:28 +0100 Content-Disposition: inline In-Reply-To: <20101117222117.GA21700@lst.de> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Turn a few noisy debug printks that show up during xfstests into complied out debug print statements. Signed-off-by: Christoph Hellwig Index: linux-2.6/fs/hfsplus/bnode.c =================================================================== --- linux-2.6.orig/fs/hfsplus/bnode.c 2010-11-17 22:43:17.971254227 +0100 +++ linux-2.6/fs/hfsplus/bnode.c 2010-11-17 22:43:21.006253879 +0100 @@ -358,7 +358,7 @@ void hfs_bnode_unlink(struct hfs_bnode * // move down? if (!node->prev && !node->next) { - printk(KERN_DEBUG "hfs_btree_del_level\n"); + dprint(DBG_BNODE_MOD, "hfs_btree_del_level\n"); } if (!node->parent) { tree->root = 0; Index: linux-2.6/fs/hfsplus/brec.c =================================================================== --- linux-2.6.orig/fs/hfsplus/brec.c 2010-11-17 22:43:17.978254437 +0100 +++ linux-2.6/fs/hfsplus/brec.c 2010-11-17 22:43:21.061253809 +0100 @@ -375,7 +375,7 @@ again: end_off = hfs_bnode_read_u16(parent, end_rec_off); if (end_rec_off - end_off < diff) { - printk(KERN_DEBUG "hfs: splitting index node...\n"); + dprint(DBG_BNODE_MOD, "hfs: splitting index node.\n"); fd->bnode = parent; new_node = hfs_bnode_split(fd); if (IS_ERR(new_node)) Index: linux-2.6/fs/hfsplus/btree.c =================================================================== --- linux-2.6.orig/fs/hfsplus/btree.c 2010-11-17 22:43:17.992253948 +0100 +++ linux-2.6/fs/hfsplus/btree.c 2010-11-17 22:43:21.226254856 +0100 @@ -287,7 +287,7 @@ struct hfs_bnode *hfs_bmap_alloc(struct kunmap(*pagep); nidx = node->next; if (!nidx) { - printk(KERN_DEBUG "hfs: create new bmap node...\n"); + dprint(DBG_BNODE_MOD, "hfs: create new bmap node.\n"); next_node = hfs_bmap_new_bmap(node, idx); } else next_node = hfs_bnode_find(tree, nidx); Index: linux-2.6/fs/hfsplus/super.c =================================================================== --- linux-2.6.orig/fs/hfsplus/super.c 2010-11-17 22:43:18.001254437 +0100 +++ linux-2.6/fs/hfsplus/super.c 2010-11-17 22:43:21.231254298 +0100 @@ -451,8 +451,6 @@ static int hfsplus_fill_super(struct sup sync_dirty_buffer(sbi->s_vhbh); if (!sbi->hidden_dir) { - printk(KERN_DEBUG "hfs: create hidden dir...\n"); - mutex_lock(&sbi->vh_mutex); sbi->hidden_dir = hfsplus_new_inode(sb, S_IFDIR); hfsplus_create_cat(sbi->hidden_dir->i_ino, sb->s_root->d_inode,