diff options
author | Doug Ledford <dledford@redhat.com> | 2009-04-08 17:25:52 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-04-08 17:25:52 +1000 |
commit | c9b6907ba0de7812139cad2dac2c13545810713f (patch) | |
tree | 9e0cca2d8e42a0f2b0b296b4b72809f33f25e002 /super-ddf.c | |
parent | 7c5483270d39599361a69de11f1b8debafde03a9 (diff) | |
download | mdadm-c9b6907ba0de7812139cad2dac2c13545810713f.tar.gz mdadm-c9b6907ba0de7812139cad2dac2c13545810713f.tar.xz mdadm-c9b6907ba0de7812139cad2dac2c13545810713f.zip |
super-ddf: fix compile warnings on ppc64
Simple patch to silence some compile warnings that only show up on
64bit arches.
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super-ddf.c')
-rw-r--r-- | super-ddf.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/super-ddf.c b/super-ddf.c index 93c8f06..d22c88c 100644 --- a/super-ddf.c +++ b/super-ddf.c @@ -1061,9 +1061,9 @@ static void examine_vd(int n, struct ddf_super *sb, char *guid) map_num(ddf_sec_level, vc->srl) ?: "-unknown-"); } printf(" Device Size[%d] : %llu\n", n, - __be64_to_cpu(vc->blocks)/2); + (unsigned long long)__be64_to_cpu(vc->blocks)/2); printf(" Array Size[%d] : %llu\n", n, - __be64_to_cpu(vc->array_blocks)/2); + (unsigned long long)__be64_to_cpu(vc->array_blocks)/2); } } @@ -1110,7 +1110,8 @@ static void examine_pds(struct ddf_super *sb) //printf("\n"); printf(" %3d %08x ", i, __be32_to_cpu(pd->refnum)); - printf("%8lluK ", __be64_to_cpu(pd->config_size)>>1); + printf("%8lluK ", + (unsigned long long)__be64_to_cpu(pd->config_size)>>1); for (dl = sb->dlist; dl ; dl = dl->next) { if (dl->disk.refnum == pd->refnum) { char *dv = map_dev(dl->major, dl->minor, 0); |