[PATCH -next] power: fix block_io.c printk warning

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Randy Dunlap
Date: Monday, May 3, 2010 - 10:06 am

From: Randy Dunlap <randy.dunlap@oracle.com>

Fix printk format warning in block_io.c:

kernel/power/block_io.c:41: warning: format '%ld' expects type 'long int', but argument 2 has type 'sector_t'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
---
 kernel/power/block_io.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- linux-next-20100503.orig/kernel/power/block_io.c
+++ linux-next-20100503/kernel/power/block_io.c
@@ -37,8 +37,8 @@ static int submit(int rw, struct block_d
 	bio->bi_end_io = end_swap_bio_read;
 
 	if (bio_add_page(bio, page, PAGE_SIZE, 0) < PAGE_SIZE) {
-		printk(KERN_ERR "PM: Adding page to bio failed at %ld\n",
-			sector);
+		printk(KERN_ERR "PM: Adding page to bio failed at %llu\n",
+			(unsigned long long)sector);
 		bio_put(bio);
 		return -EFAULT;
 	}
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
linux-next: Tree for May 3, Stephen Rothwell, (Sun May 2, 10:16 pm)
[PATCH -next] power: fix block_io.c printk warning, Randy Dunlap, (Mon May 3, 10:06 am)
[PATCH -next] usbserial: fix mos7720 dependencies, Randy Dunlap, (Mon May 3, 10:07 am)
[PATCH -next] staging: fix cxt1e1 module names, Randy Dunlap, (Mon May 3, 10:09 am)
Re: [PATCH -next] staging: fix cxt1e1 module names, Joe Perches, (Mon May 3, 11:02 am)
Re: [PATCH -next] staging: fix cxt1e1 module names, Randy Dunlap, (Mon May 3, 11:06 am)
Re: [PATCH -next] power: fix block_io.c printk warning, Rafael J. Wysocki, (Mon May 3, 3:00 pm)
Re: [PATCH -next] staging/cxt1e1: Convert bare printks to ..., Peter =?iso-8859-1?q ..., (Wed May 5, 5:21 am)