summaryrefslogtreecommitdiffstats
path: root/flash.h
diff options
context:
space:
mode:
authorStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2013-06-23 22:15:39 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2013-06-23 22:15:39 +0000
commit682122bce7714e285d196be09d4c97666458c487 (patch)
tree026de7f194bea13e2792bdd28e5edb8242bc93c1 /flash.h
parentcecb2c56d07ac45cde56cadc6416e653b0cfafb7 (diff)
downloadast2050-flashrom-682122bce7714e285d196be09d4c97666458c487.zip
ast2050-flashrom-682122bce7714e285d196be09d4c97666458c487.tar.gz
Warn if we skipped all blocks while writing
Quick hack to print a warning if we skip all blocks in a write process because they are already equal to the requested image. We want something like this to make users aware... and some developers who regularly fall for this too *coughcough*. There might be more elegant solutions for this... patches welcome. This does not work for erasing because we do that unconditionally. Corresponding to flashrom svn r1680. Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Idwer Vollering <vidwer@gmail.com>
Diffstat (limited to 'flash.h')
-rw-r--r--flash.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/flash.h b/flash.h
index 1857cc0..7e50ae5 100644
--- a/flash.h
+++ b/flash.h
@@ -27,6 +27,7 @@
#include <inttypes.h>
#include <stdint.h>
#include <stddef.h>
+#include <stdbool.h>
#ifdef _WIN32
#include <windows.h>
#undef min
OpenPOWER on IntegriCloud