Skip to content

Commit

Permalink
[PATCH] md-export-rdev-data_offset-via-sysfs-fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Jan 6, 2006
1 parent 93c8cad commit 6961ece
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6961ece

Please sign in to comment.