diff options
author | NeilBrown <neilb@suse.de> | 2009-05-11 15:47:10 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-05-11 15:47:10 +1000 |
commit | 13a3b65d5432ee941b9617670a79ef38363ccc7d (patch) | |
tree | bcef1891796b26384d22233fdbb59bfd4964d866 | |
parent | ac7de9d97a4a5693ec733574d04eb38a65e08922 (diff) | |
download | mdadm-13a3b65d5432ee941b9617670a79ef38363ccc7d.tar.gz mdadm-13a3b65d5432ee941b9617670a79ef38363ccc7d.tar.xz mdadm-13a3b65d5432ee941b9617670a79ef38363ccc7d.zip |
Fix printf compile warning.
It always afters to cast big things to (unsigned long long) before
printing as %llu - it seems there will always be one arch which
has something to complain about ....
Signed-off-by: NeilBrown <neilb@suse.de>
-rw-r--r-- | super-intel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/super-intel.c b/super-intel.c index a2e3b7f..d7383fb 100644 --- a/super-intel.c +++ b/super-intel.c @@ -735,7 +735,8 @@ static void examine_super_imsm(struct supertype *st, char *homehost) printf(" Signature : %x\n", __le32_to_cpu(log->signature)); printf(" Entry Count : %d\n", __le32_to_cpu(log->entry_count)); printf(" Spare Blocks : %d\n", __le32_to_cpu(log->reserved_spare_block_count)); - printf(" First Spare : %llx\n", __le64_to_cpu(log->first_spare_lba)); + printf(" First Spare : %llx\n", + (unsigned long long) __le64_to_cpu(log->first_spare_lba)); } for (i = 0; i < mpb->num_raid_devs; i++) { struct mdinfo info; |