]> www.infradead.org Git - mtd-utils.git/commitdiff
ubi-utils: fix compilation warnings in eb_chain.c when using gcc 4.2.3
authorOtavio Salvador <otavio@ossystems.com.br>
Sat, 23 Feb 2008 13:25:39 +0000 (10:25 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Sat, 23 Feb 2008 13:25:39 +0000 (10:25 -0300)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
ubi-utils/src/eb_chain.c

index 4647cf4f1c14a99f58a1a9f35617ea5eac60fe0f..da5c2e344c612fd8fb632fc2f1cef2eea2408135 100644 (file)
@@ -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;
                }