On Wed, 04 Jan 2012 02:08:06 +0100 Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net wrote:
Oh well... new iteration, with some of the suggestions merged. This still is not final, but it should be a bit closer.
@@ -510,9 +541,13 @@ * Give the chip time to settle. */ programmer_delay(100000);
- return doit(fill_flash, force, filename, read_it, write_it, erase_it, verify_it);
- ret |= doit(fill_flash, force, filename, read_it, write_it, erase_it, verify_it);
out_shutdown: programmer_shutdown(); +out:
^ unused (hence breaking compilation)
+#ifndef STANDALONE
- ret |= close_logfile();
+#endif return ret;
also i see a little problem with this... ;) ./flashrom flashrom v0.9.4-r1483 on Linux 2.6.35-32-generic (x86_64) flashrom is free software. Get the source code at http://www.flashrom.org
No filename specified.
attached is your patch rebased to r1490 without "out:" maybe we can get this into 0.9.5 after some rework? do you have a todo for it?