ext3: Fix compilation with -DDX_DEBUG
authorBernd Schubert <bernd.schubert@itwm.fraunhofer.de>
Wed, 20 Jul 2011 21:16:33 +0000 (23:16 +0200)
committerJan Kara <jack@suse.cz>
Wed, 20 Jul 2011 21:16:33 +0000 (23:16 +0200)
Compilation of ext3/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: Jan Kara <jack@suse.cz>
fs/ext3/namei.c

index 51736a4ff0cd8fb9b47fa9727b36de1b34904947..0465368598bd619de92d9ece73ef41b272daa841 100644 (file)
@@ -288,7 +288,7 @@ static struct stats dx_show_leaf(struct dx_hash_info *hinfo, struct ext3_dir_ent
                                while (len--) printk("%c", *name++);
                                ext3fs_dirhash(de->name, de->name_len, &h);
                                printk(":%x.%u ", h.hash,
-                                      ((char *) de - base));
+                                      (unsigned) ((char *) de - base));
                        }
                        space += EXT3_DIR_REC_LEN(de->name_len);
                        names++;
@@ -1014,7 +1014,7 @@ static struct buffer_head * ext3_dx_find_entry(struct inode *dir,
 
        *err = -ENOENT;
 errout:
-       dxtrace(printk("%s not found\n", name));
+       dxtrace(printk("%s not found\n", entry->name));
        dx_release (frames);
        return NULL;
 }
This page took 0.025864 seconds and 5 git commands to generate.