summaryrefslogtreecommitdiffstats
path: root/super1.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2007-02-22 14:59:25 +1100
committerNeil Brown <neilb@suse.de>2007-02-22 14:59:25 +1100
commiteb9199fb5e761762a42408fb6dc56f61ff53a4a1 (patch)
tree040a2e203156927b94b37e270f18cf6b075cacbc /super1.c
parent00be0b12d234b2dc3c78ebc8dc342092061091ec (diff)
downloadmdadm-eb9199fb5e761762a42408fb6dc56f61ff53a4a1.tar.gz
mdadm-eb9199fb5e761762a42408fb6dc56f61ff53a4a1.tar.xz
mdadm-eb9199fb5e761762a42408fb6dc56f61ff53a4a1.zip
A couple of casts needed in printf statements.
Diffstat (limited to 'super1.c')
-rw-r--r--super1.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/super1.c b/super1.c
index 42efc75..7de9b41 100644
--- a/super1.c
+++ b/super1.c
@@ -576,10 +576,12 @@ static int update_super1(struct mdinfo *info, void *sbv, char *update,
/* set data_size to device size less data_offset */
struct misc_dev_info *misc = (struct misc_dev_info*)
(sbv + 1024 + sizeof(struct bitmap_super_s));
- printf("Size was %llu\n", __le64_to_cpu(sb->data_size));
+ printf("Size was %llu\n", (unsigned long long)
+ __le64_to_cpu(sb->data_size));
sb->data_size = __cpu_to_le64(
misc->device_size - __le64_to_cpu(sb->data_offset));
- printf("Size is %llu\n", __le64_to_cpu(sb->data_size));
+ printf("Size is %llu\n", (unsigned long long)
+ __le64_to_cpu(sb->data_size));
}
if (strcmp(update, "_reshape_progress")==0)
sb->reshape_position = __cpu_to_le64(info->reshape_progress);