From 28686857636735d671b541f9266c918f78457456 Mon Sep 17 00:00:00 2001
From: Otavio Salvador <otavio@ossystems.com.br>
Date: Sat, 23 Feb 2008 10:25:39 -0300
Subject: ubi-utils: fix compilation warnings in eb_chain.c when using gcc
 4.2.3

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 ubi-utils/src/eb_chain.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ubi-utils/src/eb_chain.c b/ubi-utils/src/eb_chain.c
index 4647cf4..da5c2e3 100644
--- a/ubi-utils/src/eb_chain.c
+++ b/ubi-utils/src/eb_chain.c
@@ -221,7 +221,7 @@ eb_chain_print(FILE* stream, struct eb_info *head)
 		else	fprintf(stream, "%-4s", cur->data_crc_ok ? "ok":"ign");
 		fprintf(stream, " %-4d %08x %-8u %-8llu\n", cur->phys_block,
 			cur->phys_addr, be32_to_cpu(cur->vid.data_size),
-			be64_to_cpu(cur->ec.ec));
+			(unsigned long long)be64_to_cpu(cur->ec.ec));
 
 		hist = cur->older;
 		while (hist != NULL) {
@@ -237,7 +237,7 @@ eb_chain_print(FILE* stream, struct eb_info *head)
 			fprintf(stream, " %-4d %08x %-8u %-8llu (*)\n",
 				hist->phys_block, hist->phys_addr,
 				be32_to_cpu(hist->vid.data_size),
-				be64_to_cpu(hist->ec.ec));
+				(unsigned long long)be64_to_cpu(hist->ec.ec));
 
 			hist = hist->older;
 		}
-- 
cgit v1.2.3