From: Randy Dunlap <randy.dunlap@oracle.com>
To: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: linux-next@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>,
dm-devel@redhat.com
Subject: [PATCH -next] dm-table: fix printk formats
Date: Wed, 06 May 2009 14:54:46 -0700 [thread overview]
Message-ID: <4A020726.3020009@oracle.com> (raw)
In-Reply-To: <20090506172653.2f1bbedd.sfr@canb.auug.org.au>
From: Randy Dunlap <randy.dunlap@oracle.com>
Fix printk format warnings:
drivers/md/dm-table.c:408: warning: format '%lu' expects type 'long unsigned int', but argument 3 has type 'sector_t'
drivers/md/dm-table.c:414: warning: format '%lu' expects type 'long unsigned int', but argument 3 has type 'sector_t'
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: dm-devel@redhat.com
---
drivers/md/dm-table.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
--- linux-next-20090506.orig/drivers/md/dm-table.c
+++ linux-next-20090506/drivers/md/dm-table.c
@@ -405,14 +405,16 @@ static int device_area_is_valid(struct d
return 1;
if (start & (hardsect_size_sectors - 1)) {
- DMWARN("%s: start=%lu not aligned to h/w sector of %s",
- dm_device_name(ti->table->md), start, bdevname(bdev, b));
+ DMWARN("%s: start=%llu not aligned to h/w sector of %s",
+ dm_device_name(ti->table->md),
+ (unsigned long long)start, bdevname(bdev, b));
return 0;
}
if (len & (hardsect_size_sectors - 1)) {
- DMWARN("%s: len=%lu not aligned to h/w sector size %hu of %s",
- dm_device_name(ti->table->md), len,
+ DMWARN("%s: len=%llu not aligned to h/w sector size %hu of %s",
+ dm_device_name(ti->table->md),
+ (unsigned long long)len,
ti->limits.hardsect_size, bdevname(bdev, b));
return 0;
}
next prev parent reply other threads:[~2009-05-06 21:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-06 7:26 linux-next: Tree for May 6 Stephen Rothwell
2009-05-06 15:55 ` linux-next: Tree for May 6 (fs/) Randy Dunlap
2009-05-06 16:05 ` linux-next: Tree for May 6 (fs/quota) Randy Dunlap
2009-05-06 16:08 ` Al Viro
2009-05-06 21:54 ` Randy Dunlap [this message]
2009-05-07 15:41 ` [PATCH -next] dm-table: fix printk formats Alasdair G Kergon
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=4A020726.3020009@oracle.com \
--to=randy.dunlap@oracle.com \
--cc=dm-devel@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=sfr@canb.auug.org.au \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.