linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bernd Schubert <bernd.schubert@fastmail.fm>
To: colyli@gmail.com
Cc: linux-ext4@vger.kernel.org,
	Bernd Schubert <bernd.schubert@itwm.fraunhofer.de>
Subject: Re: [PATCH 1/2] ext4: Fix compilation with -DDX_DEBUG
Date: Fri, 17 Jun 2011 23:25:51 +0200	[thread overview]
Message-ID: <4DFBC65F.7000208@fastmail.fm> (raw)
In-Reply-To: <4DFB9CF8.60208@gmail.com>

On 06/17/2011 08:29 PM, Coly Li wrote:
> On 2011年06月18日 00:00, Bernd Schubert Wrote:
>> 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));
>>  			}
> 
> How about use %p in printk like
>> +				printk(":%x.%p ", h.hash,
>> +				       ((char *) de - base));
> 

Fine with me :) I will send updated patches on Monday.

Cheers,
Bernd
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2011-06-17 21:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DFBC65F.7000208@fastmail.fm \
    --to=bernd.schubert@fastmail.fm \
    --cc=bernd.schubert@itwm.fraunhofer.de \
    --cc=colyli@gmail.com \
    --cc=linux-ext4@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).