Bill Richardson
8f080f795b
Cr50: Use parse_bool() for boolean args
...
The parse_bool() function exists so we don't have to litter our
console commands with stuff like this:
if (!strncasecmp(argv[1], "on") ||
!strncasecmp(argv[1], "enable" ||
!strncasecmp(argv[1], "true" ||
[...]
This CL uses parse_bool instead of that kind of thing so I don't
have to remember which commands use "enable" and which use "on"
and so forth.
I only changed the commands that Cr50 uses.
BUG=none
BRANCH=none
TEST=make buildall; test on Cr50 hardware
I tested all the affected commands to ensure that they still work
correctly: usb, ccd, flashwp (which doesn't do anything anyway).
Change-Id: I7d875ab22934fb4b500e3d0f62ebe3e04101272d
Signed-off-by: Bill Richardson <wfrichar@chromium.org >
Reviewed-on: https://chromium-review.googlesource.com/373658
Reviewed-by: Randall Spangler <rspangler@chromium.org >
2016-08-22 23:27:24 -07:00
..
2016-08-09 22:11:09 -07:00
2016-05-26 16:17:26 -07:00
2015-12-11 11:22:01 -08:00
2016-04-18 17:32:40 -07:00
2013-09-27 23:07:21 +00:00
2016-04-18 17:32:40 -07:00
2016-08-11 14:46:33 -07:00
2016-08-08 01:48:45 -07:00
2016-08-16 14:04:33 -07:00
2016-08-08 01:48:45 -07:00
2016-07-19 18:33:37 -07:00
2016-04-18 17:32:40 -07:00
2016-07-11 21:28:06 -07:00
2016-07-26 12:27:19 -07:00
2016-05-24 15:46:01 -07:00
2016-01-06 18:48:11 -08:00
2016-07-25 21:01:50 -07:00
2014-05-21 20:32:17 +00:00
2014-11-18 05:19:47 +00:00
2015-05-19 02:46:27 +00:00
2016-03-22 19:54:46 -07:00
2016-02-23 22:40:17 -08:00
2016-03-18 22:16:53 -07:00
2014-08-08 03:11:38 +00:00
2016-07-12 22:34:56 -07:00
2016-07-30 01:24:52 -07:00
2015-07-17 03:17:50 +00:00
2015-11-17 14:40:26 -08:00
2016-04-18 17:32:40 -07:00
2016-03-30 04:37:39 -07:00
2015-12-09 06:36:22 -08:00
2015-12-09 06:36:22 -08:00
2016-08-22 23:27:24 -07:00
2016-02-08 13:47:49 -08:00
2015-09-29 11:28:40 -07:00
2016-04-27 14:04:07 -07:00
2016-04-27 14:04:07 -07:00
2016-04-19 12:23:52 -07:00
2015-11-09 12:49:43 -08:00
2016-04-17 12:23:07 -07:00
2016-07-09 01:40:59 -07:00
2016-06-22 02:03:09 -07:00
2014-03-06 21:33:09 +00:00
2016-08-21 04:11:10 -07:00
2016-04-18 17:32:40 -07:00
2015-07-17 03:18:03 +00:00
2015-08-28 18:09:06 -07:00
2016-07-19 18:33:39 -07:00
2016-06-30 20:14:01 -07:00
2013-03-22 11:24:29 -07:00
2015-09-25 09:13:34 -07:00
2014-01-14 09:19:45 +00:00
2016-07-19 12:03:27 -07:00
2016-03-02 13:39:47 -08:00
2016-08-08 13:53:28 -07:00
2016-01-06 18:48:11 -08:00
2015-10-13 05:28:54 -07:00
2016-06-03 20:14:59 -07:00
2015-10-13 05:28:54 -07:00
2015-10-13 05:28:54 -07:00
2016-03-01 08:25:58 -08:00
2016-04-03 10:27:36 -07:00
2016-08-19 14:21:33 -07:00
2015-11-25 18:15:38 -08:00
2016-07-11 08:25:53 -07:00
2016-08-11 14:46:42 -07:00
2013-08-02 18:22:57 -07:00
2016-08-05 11:45:24 -07:00
2015-11-08 10:07:38 -08:00
2015-11-11 12:58:37 -08:00
2016-01-06 18:48:11 -08:00
2016-04-18 17:32:40 -07:00
2016-07-29 10:51:22 -07:00
2012-07-26 16:25:34 -07:00
2015-12-04 01:20:33 -08:00
2016-05-27 18:08:58 -07:00
2015-06-11 00:08:49 +00:00
2015-07-15 21:57:36 +00:00
2014-11-15 06:00:02 +00:00
2015-09-25 19:36:37 -07:00
2014-05-17 20:14:17 +00:00
2016-05-05 19:16:50 -07:00
2015-02-24 00:27:42 +00:00
2016-03-21 16:35:33 -07:00
2015-11-19 02:18:10 -08:00
2016-08-02 18:49:52 -07:00
2016-03-30 17:10:17 -07:00
2016-01-28 21:45:37 +00:00
2016-04-18 17:32:40 -07:00
2016-08-19 14:21:23 -07:00
2016-07-30 01:24:52 -07:00
2016-02-03 15:00:50 -08:00
2016-07-30 01:24:52 -07:00
2016-04-14 17:28:17 -07:00
2016-07-21 17:32:28 -07:00
2016-08-21 15:52:12 -07:00
2016-04-27 10:10:02 -07:00
2016-07-21 13:13:35 -07:00
2016-06-16 12:27:42 -07:00
2016-04-18 17:32:40 -07:00
2016-08-22 05:03:26 -07:00
2016-06-02 14:06:53 -07:00
2014-05-21 20:32:17 +00:00
2016-03-24 00:03:07 -07:00
2016-07-21 13:13:35 -07:00
2016-08-22 23:27:24 -07:00
2016-04-18 17:32:40 -07:00
2015-10-13 05:28:54 -07:00
2015-09-24 12:46:28 -07:00
2016-01-25 21:46:48 -08:00
2016-06-03 02:59:56 -07:00