diff packages/redboot/current/src/flash.c @ 1354:c8903ba86828

Remove misleading "warning"
author gthomas
date Fri, 07 Nov 2003 17:42:11 +0000
parents 4444f5b3be7b
children 5503490aa292
line wrap: on
line diff
--- a/packages/redboot/current/src/flash.c
+++ b/packages/redboot/current/src/flash.c
@@ -428,10 +428,14 @@ fis_init(int argc, char *argv[])
             diag_printf("   initialization failed at %p: %s\n",
                         err_addr, flash_errmsg(stat));
         }
+#ifndef CYGDAT_REDBOOT_FIS_MAX_FREE_CHUNKS
+    // In this case, 'fis free' works by scanning for erased blocks.  Since the
+    // "-f" option was not supplied, there may be areas which are not used but
+    // don't appear to be free since they are not erased - thus the warning
     } else {
         diag_printf("    Warning: device contents not erased, some blocks may not be usable\n");
+#endif
     }
-
     fis_update_directory();
 }