diff options
author | Neil Brown <neilb@suse.de> | 2007-02-22 04:59:25 +0100 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2007-02-22 04:59:25 +0100 |
commit | eb9199fb5e761762a42408fb6dc56f61ff53a4a1 (patch) | |
tree | 040a2e203156927b94b37e270f18cf6b075cacbc | |
parent | Fixed old documentation in --grow --help (diff) | |
download | mdadm-eb9199fb5e761762a42408fb6dc56f61ff53a4a1.tar.xz mdadm-eb9199fb5e761762a42408fb6dc56f61ff53a4a1.zip |
A couple of casts needed in printf statements.
-rw-r--r-- | super1.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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); |