[coreboot-gerrit] Change in coreboot[master]: util/ectool: Dump ram by default

Arthur Heymans (Code Review) gerrit at coreboot.org
Thu Apr 6 14:26:05 CEST 2017


Arthur Heymans has uploaded a new change for review. ( https://review.coreboot.org/19152 )

Change subject: util/ectool: Dump ram by default
......................................................................

util/ectool: Dump ram by default

According to the comment above the default should dump the EC ram,
though is never reached since the variable 'write_addr' is not 0, but
initialized at -1.

Also removes brackets around one line statement below if to make
checkpatch.pl happy.

Change-Id: I390996b253f2f20682cd9ab2d4f560de6eccfc57
Signed-off-by: Arthur Heymans <arthur at aheymans.xyz>
---
M util/ectool/ectool.c
1 file changed, 1 insertion(+), 2 deletions(-)


  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/52/19152/1

diff --git a/util/ectool/ectool.c b/util/ectool/ectool.c
index 6d9668d..dcf1728 100644
--- a/util/ectool/ectool.c
+++ b/util/ectool/ectool.c
@@ -135,9 +135,8 @@
 	}
 
 	/* preserve default - dump_ram if nothing selected */
-	if (!dump_ram && !dump_idx && !dump_query && !write_addr) {
+	if (!dump_ram && !dump_idx && !dump_query && (write_addr == -1))
 		dump_ram = 1;
-	}
 
 	if (dump_ram) {
 		printf("EC RAM:\n");

-- 
To view, visit https://review.coreboot.org/19152
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I390996b253f2f20682cd9ab2d4f560de6eccfc57
Gerrit-PatchSet: 1
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Owner: Arthur Heymans <arthur at aheymans.xyz>



More information about the coreboot-gerrit mailing list