This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

typo fix: follow up


hi again,

sorry, my previous patch revealed another bug.
It's better to consider this new one.

@@ -850,7 +850,7 @@
     bool mem_addr_set = false;
     bool show_cksum = false;
     struct option_info opts[3];
-#ifdef CYGPKG_REDBOOT_FIS_CRC_CHECK
+#ifdef CYGSEM_REDBOOT_FIS_CRC_CHECK
     unsigned long cksum;
 #endif
     int num_options;
@@ -926,13 +926,17 @@
     }
     entry_address = (unsigned long)img->entry_point;
 
-#ifdef CYGPKG_REDBOOT_FIS_CRC_CHECK
+#ifdef CYGSEM_REDBOOT_FIS_CRC_CHECK
     cksum = cyg_crc32((unsigned char *)mem_addr, img->data_length);
     if (show_cksum) {
         diag_printf("Checksum: 0x%08lx\n", cksum);
     }
     // When decompressing, leave CRC checking to decompressor
+#ifdef CYGPKG_COMPRESS_ZLIB
     if (!decompress && img->file_cksum) {
+#else
+    if (img->file_cksum) {
+#endif
         if (cksum != img->file_cksum) {
             diag_printf("** Warning - checksum failure.  stored: 0x%08lx, 
computed: 0x%08lx\n",
                         img->file_cksum, cksum);

regards,

GONZALEZ Laurent
Silicomp Research Institute
Tel: 04 76 63 48 63



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]