From: NeilBrown Date: Mon, 11 May 2009 05:47:10 +0000 (+1000) Subject: Fix printf compile warning. X-Git-Tag: mdadm-3.0-rc1~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13a3b65d5432ee941b9617670a79ef38363ccc7d;p=thirdparty%2Fmdadm.git 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 --- diff --git a/super-intel.c b/super-intel.c index a2e3b7fc..d7383fbd 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;