This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
typo fix: follow up
- From: Laurent Gonzalez <lgonzale at ri dot silicomp dot fr>
- To: ecos-patches at sources dot redhat dot com
- Date: Fri, 23 Aug 2002 17:35:04 +0200
- Subject: 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