summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2015-07-02 19:48:22 +0200
committerPatrick Georgi <pgeorgi@google.com>2015-07-06 23:11:03 +0200
commit0004ae8f4bf13e549474c5db998f4708fb0b88e8 (patch)
treeb7370a0a79974ff5c855ad1acdbdbfd878e47d89 /util
parent5a2bd0b69313aabcff7e7965494429c0b8dbdda4 (diff)
downloadcoreboot-0004ae8f4bf13e549474c5db998f4708fb0b88e8.tar.xz
util/ectool: don't dump the whole ram when writing to it
Change-Id: Ib2f417ff91862c71de32b3f8929d2017a725ea47 Signed-off-by: Alexander Couzens <lynxis@fe80.eu> Reviewed-on: http://review.coreboot.org/10767 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'util')
-rw-r--r--util/ectool/ectool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/ectool/ectool.c b/util/ectool/ectool.c
index 307c1f5c8b..1631debcc6 100644
--- a/util/ectool/ectool.c
+++ b/util/ectool/ectool.c
@@ -124,7 +124,7 @@ int main(int argc, char *argv[])
}
/* preserve default - dump_ram if nothing selected */
- if (!dump_ram && !dump_idx && !dump_query) {
+ if (!dump_ram && !dump_idx && !dump_query && !write_addr) {
dump_ram = 1;
}