Skip to content

Commit c878c73

Browse files
Bernd Schubertjankara
authored andcommitted
ext3: Fix compilation with -DDX_DEBUG
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>
1 parent d12dc25 commit c878c73

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎fs/ext3/namei.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ static struct stats dx_show_leaf(struct dx_hash_info *hinfo, struct ext3_dir_ent
288288
while (len--) printk("%c", *name++);
289289
ext3fs_dirhash(de->name, de->name_len, &h);
290290
printk(":%x.%u ", h.hash,
291-
((char *) de - base));
291+
(unsigned) ((char *) de - base));
292292
}
293293
space += EXT3_DIR_REC_LEN(de->name_len);
294294
names++;
@@ -1014,7 +1014,7 @@ static struct buffer_head * ext3_dx_find_entry(struct inode *dir,
10141014

10151015
*err = -ENOENT;
10161016
errout:
1017-
dxtrace(printk("%s not found\n", name));
1017+
dxtrace(printk("%s not found\n", entry->name));
10181018
dx_release (frames);
10191019
return NULL;
10201020
}

0 commit comments

Comments
 (0)