FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Device-mapper Development

 
 
LinkBack Thread Tools
 
Old 07-21-2011, 11:10 PM
Randy Dunlap
 
Default dm: fix dm-flakey printk warning

From: Randy Dunlap <rdunlap@xenotime.net>

Fix printk format warning for sector_t, which can be (unsigned)
long or long long.

drivers/md/dm-flakey.c:257: warning: format '%lu' expects type 'long unsigned int', but argument 7 has type 'sector_t'

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
---
drivers/md/dm-flakey.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

--- linux-next-20110721.orig/drivers/md/dm-flakey.c
+++ linux-next-20110721/drivers/md/dm-flakey.c
@@ -255,10 +255,11 @@ static void corrupt_bio_data(struct bio
data[fc->corrupt_bio_byte - 1] = fc->corrupt_bio_value;

DMDEBUG("Corrupting data bio=%p by writing %u to byte %u "
- "(rw=%c bi_rw=%lu bi_sector=%lu cur_bytes=%u)
",
+ "(rw=%c bi_rw=%lu bi_sector=%llu cur_bytes=%u)
",
bio, fc->corrupt_bio_value, fc->corrupt_bio_byte,
(bio_data_dir(bio) == WRITE) ? 'w' : 'r',
- bio->bi_rw, bio->bi_sector, bio_bytes);
+ bio->bi_rw, (unsigned long long)bio->bi_sector,
+ bio_bytes);
}
}


--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
 
Old 07-22-2011, 04:25 PM
Alasdair G Kergon
 
Default dm: fix dm-flakey printk warning

On Thu, Jul 21, 2011 at 04:10:47PM -0700, Randy Dunlap wrote:
> Fix printk format warning for sector_t, which can be (unsigned)
> long or long long.

Folded, thanks.

Alasdair

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
 

Thread Tools




All times are GMT. The time now is 09:45 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org