Browse Source

ext4: fix compilation with -DDX_DEBUG

Compilation of ext4/namei.c brought up an error and warning messages
when compiled with -DDX_DEBUG

Signed-off-by: Bernd Schubert <bernd.schubert@itwm.fraunhofer.de>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Bernd Schubert 14 years ago
parent
commit
265c6a0f92
1 changed files with 2 additions and 2 deletions
  1. 2 2
      fs/ext4/namei.c

+ 2 - 2
fs/ext4/namei.c

@@ -289,7 +289,7 @@ static struct stats dx_show_leaf(struct dx_hash_info *hinfo, struct ext4_dir_ent
 				while (len--) printk("%c", *name++);
 				while (len--) printk("%c", *name++);
 				ext4fs_dirhash(de->name, de->name_len, &h);
 				ext4fs_dirhash(de->name, de->name_len, &h);
 				printk(":%x.%u ", h.hash,
 				printk(":%x.%u ", h.hash,
-				       ((char *) de - base));
+				       (unsigned) ((char *) de - base));
 			}
 			}
 			space += EXT4_DIR_REC_LEN(de->name_len);
 			space += EXT4_DIR_REC_LEN(de->name_len);
 			names++;
 			names++;
@@ -1013,7 +1013,7 @@ static struct buffer_head * ext4_dx_find_entry(struct inode *dir, const struct q
 
 
 	*err = -ENOENT;
 	*err = -ENOENT;
 errout:
 errout:
-	dxtrace(printk(KERN_DEBUG "%s not found\n", name));
+	dxtrace(printk(KERN_DEBUG "%s not found\n", d_name->name));
 	dx_release (frames);
 	dx_release (frames);
 	return NULL;
 	return NULL;
 }
 }