From b2c4ee6cf88baffa7f69b1551fcda0e468bae216 Mon Sep 17 00:00:00 2001 From: Randall Spangler Date: Mon, 21 May 2012 10:29:23 -0700 Subject: [PATCH] Even more debug command cleanup to save space BUG=none TEST=(run the commands) Change-Id: Ibc414ffd594e06dbdce64c51859b6f247bb10d36 Signed-off-by: Randall Spangler --- common/eoption.c | 21 ++-- common/host_command.c | 21 +--- common/host_event_commands.c | 31 ++---- common/keyboard.c | 200 ++++++++++++++--------------------- common/lightbar.c | 48 ++++----- common/port80.c | 12 +-- common/power_led.c | 21 +--- common/smart_battery.c | 97 ++++++++--------- common/temp_sensor.c | 14 +-- include/keyboard.h | 34 ------ 10 files changed, 182 insertions(+), 317 deletions(-) diff --git a/common/eoption.c b/common/eoption.c index f25efcd68d..83a94647fc 100644 --- a/common/eoption.c +++ b/common/eoption.c @@ -140,17 +140,14 @@ static int command_eoption_get(int argc, char **argv) /* If a signal is specified, print only that one */ if (argc == 2) { i = find_option_by_name(argv[1], bool_opts); - if (i == -1) { - ccputs("Unknown option.\n"); + if (i == -1) return EC_ERROR_INVAL; - } d = bool_opts + i; ccprintf(" %d %s\n", eoption_get_bool(i), d->name); return EC_SUCCESS; } /* Otherwise print them all */ - ccputs("Boolean options:\n"); for (i = 0, d = bool_opts; d->name; i++, d++) { ccprintf(" %d %s\n", eoption_get_bool(i), d->name); @@ -168,23 +165,17 @@ static int command_eoption_set(int argc, char **argv) char *e; int v, i; - if (argc < 3) { - ccputs("Usage: optset