From 13a3b65d5432ee941b9617670a79ef38363ccc7d Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Mon, 11 May 2009 15:47:10 +1000 Subject: 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 --- super-intel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit