From a017e303614101dbd4da26ed18eee6e5c3b597c6 Mon Sep 17 00:00:00 2001 From: Rong Chang Date: Mon, 30 Apr 2012 18:59:28 +0800 Subject: [PATCH] Fix ectool battery command printable character detection Signed-off-by: Rong Chang BUG=chrome-os-partner:9152 TEST=manual Change-Id: Ic6d78aaec55d9a357b5c265f303cac3f44505fad --- util/ectool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/ectool.c b/util/ectool.c index bf4b20a030..d90db5dee5 100644 --- a/util/ectool.c +++ b/util/ectool.c @@ -267,7 +267,7 @@ int read_mapped_string(uint8_t offset, char *buf) int is_string_printable(const char *buf) { while (*buf) { - if (isprint(*buf)) + if (!isprint(*buf)) return 0; buf++; }