linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ext4: Fix compilation with -DDX_DEBUG
@ 2011-06-17 16:00 Bernd Schubert
  2011-06-17 16:01 ` [PATCH 2/2] ext4 directory index: read-ahead blocks Bernd Schubert
  2011-06-17 18:29 ` [PATCH 1/2] ext4: Fix compilation with -DDX_DEBUG Coly Li
  0 siblings, 2 replies; 9+ messages in thread
From: Bernd Schubert @ 2011-06-17 16:00 UTC (permalink / raw)
  To: linux-ext4; +Cc: Bernd Schubert

From: Bernd Schubert <bernd.schubert@itwm.fraunhofer.de>

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>
---
 fs/ext4/namei.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c
index b754b77..6f32da4 100644
--- a/fs/ext4/namei.c
+++ b/fs/ext4/namei.c
@@ -288,8 +288,8 @@ static struct stats dx_show_leaf(struct dx_hash_info *hinfo, struct ext4_dir_ent
 				char *name = de->name;
 				while (len--) printk("%c", *name++);
 				ext4fs_dirhash(de->name, de->name_len, &h);
-				printk(":%x.%u ", h.hash,
-				       ((char *) de - base));
+				printk(":%x.%ld ", h.hash,
+				       (long) ((char *) de - base));
 			}
 			space += EXT4_DIR_REC_LEN(de->name_len);
 			names++;
@@ -1013,7 +1013,7 @@ static struct buffer_head * ext4_dx_find_entry(struct inode *dir, const struct q
 
 	*err = -ENOENT;
 errout:
-	dxtrace(printk(KERN_DEBUG "%s not found\n", name));
+	dxtrace(printk(KERN_DEBUG "%s not found\n", d_name->name));
 	dx_release (frames);
 	return NULL;
 }


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-06-18  7:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-17 16:00 [PATCH 1/2] ext4: Fix compilation with -DDX_DEBUG Bernd Schubert
2011-06-17 16:01 ` [PATCH 2/2] ext4 directory index: read-ahead blocks Bernd Schubert
2011-06-17 18:44   ` Coly Li
2011-06-17 19:29     ` Andreas Dilger
2011-06-17 22:08       ` Bernd Schubert
2011-06-17 21:35     ` Bernd Schubert
2011-06-18  7:45   ` Robin Dong
2011-06-17 18:29 ` [PATCH 1/2] ext4: Fix compilation with -DDX_DEBUG Coly Li
2011-06-17 21:25   ` Bernd Schubert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).