From 878c2de41b17443c8b358c4a3171669d8aab5ccd Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Thu, 6 Apr 2017 14:21:31 +0200 Subject: 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 Reviewed-on: https://review.coreboot.org/19152 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Alexander Couzens --- util/ectool/ectool.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'util') diff --git a/util/ectool/ectool.c b/util/ectool/ectool.c index 6d9668ded2..dcf17288f1 100644 --- a/util/ectool/ectool.c +++ b/util/ectool/ectool.c @@ -135,9 +135,8 @@ int main(int argc, char *argv[]) } /* 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"); -- cgit v1.2.3