summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2008-02-23 10:25:39 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2008-02-23 10:25:39 -0300
commit28686857636735d671b541f9266c918f78457456 (patch)
tree1e030c6029b66ff49a9cbffd9b217274ca480787
parent620f154ac8ad78a52996a980921019407f66ec71 (diff)
ubi-utils: fix compilation warnings in eb_chain.c when using gcc 4.2.3
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
-rw-r--r--ubi-utils/src/eb_chain.c4
1 files 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;
}