Browse Source

fs/hfsplus: fix pr_foo() and hfs_dbg formats

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Suggested-By: Vyacheslav Dubeyko <slava@dubeyko.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Fabian Frederick 11 years ago
parent
commit
b73f3d0e70
3 changed files with 6 additions and 6 deletions
  1. 3 4
      fs/hfsplus/extents.c
  2. 2 1
      fs/hfsplus/super.c
  3. 1 1
      fs/hfsplus/xattr.c

+ 3 - 4
fs/hfsplus/extents.c

@@ -436,10 +436,9 @@ int hfsplus_file_extend(struct inode *inode, bool zeroout)
 	if (sbi->alloc_file->i_size * 8 <
 	if (sbi->alloc_file->i_size * 8 <
 	    sbi->total_blocks - sbi->free_blocks + 8) {
 	    sbi->total_blocks - sbi->free_blocks + 8) {
 		/* extend alloc file */
 		/* extend alloc file */
-		pr_err("extend alloc file! "
-				"(%llu,%u,%u)\n",
-			sbi->alloc_file->i_size * 8,
-			sbi->total_blocks, sbi->free_blocks);
+		pr_err("extend alloc file! (%llu,%u,%u)\n",
+		       sbi->alloc_file->i_size * 8,
+		       sbi->total_blocks, sbi->free_blocks);
 		return -ENOSPC;
 		return -ENOSPC;
 	}
 	}
 
 

+ 2 - 1
fs/hfsplus/super.c

@@ -131,9 +131,10 @@ static int hfsplus_system_write_inode(struct inode *inode)
 	hfsplus_inode_write_fork(inode, fork);
 	hfsplus_inode_write_fork(inode, fork);
 	if (tree) {
 	if (tree) {
 		int err = hfs_btree_write(tree);
 		int err = hfs_btree_write(tree);
+
 		if (err) {
 		if (err) {
 			pr_err("b-tree write err: %d, ino %lu\n",
 			pr_err("b-tree write err: %d, ino %lu\n",
-					err, inode->i_ino);
+			       err, inode->i_ino);
 			return err;
 			return err;
 		}
 		}
 	}
 	}

+ 1 - 1
fs/hfsplus/xattr.c

@@ -70,7 +70,7 @@ static void hfsplus_init_header_node(struct inode *attr_file,
 	loff_t tmp;
 	loff_t tmp;
 
 
 	hfs_dbg(ATTR_MOD, "init_hdr_attr_file: clump %u, node_size %u\n",
 	hfs_dbg(ATTR_MOD, "init_hdr_attr_file: clump %u, node_size %u\n",
-				clump_size, node_size);
+		clump_size, node_size);
 
 
 	/* The end of the node contains list of record offsets */
 	/* The end of the node contains list of record offsets */
 	rec_offsets = (__be16 *)(buf + node_size);
 	rec_offsets = (__be16 *)(buf + node_size);