]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] md-export-rdev-data_offset-via-sysfs-fix
authorAndrew Morton <akpm@osdl.org>
Fri, 6 Jan 2006 08:20:59 +0000 (00:20 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 6 Jan 2006 16:34:10 +0000 (08:34 -0800)
drivers/md/md.c: In function `offset_show':
drivers/md/md.c:1670: warning: long long unsigned int format, different type arg (arg 3)

Cc: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/md.c

index 742a82a4d10bbcbeb67e40721c11824637ac9a1a..27db100d8b12c324a81c5a70efe5546a36aec528 100644 (file)
@@ -1667,7 +1667,7 @@ __ATTR(slot, 0644, slot_show, slot_store);
 static ssize_t
 offset_show(mdk_rdev_t *rdev, char *page)
 {
-       return sprintf(page, "%llu\n", rdev->data_offset);
+       return sprintf(page, "%llu\n", (unsigned long long)rdev->data_offset);
 }
 
 static ssize_t