summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuigi Semenzato <semenzato@chromium.org>2012-06-08 09:30:58 -0700
committerGerrit <chrome-bot@google.com>2012-06-08 10:31:03 -0700
commited0fd8752922ae15503df1d557e37771bc5f261f (patch)
treee4246b7563fc12dbf7fa021837067b1959ea4a6a
parenta9ea75302872cf0d9096ed4965044a3666a32c5d (diff)
downloadchrome-ec-ed0fd8752922ae15503df1d557e37771bc5f261f.tar.gz
EC: alphabetize command list in help message
BUG=none TEST=none Change-Id: I00ac033d36a8472007ea66a4aebde003970cd1a2 Signed-off-by: Luigi Semenzato <semenzato@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/24878 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
-rw-r--r--util/ectool.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/util/ectool.c b/util/ectool.c
index 9c287c36b0..5f10d35b80 100644
--- a/util/ectool.c
+++ b/util/ectool.c
@@ -27,6 +27,8 @@ static inline int MIN(int a, int b) { return a < b ? a : b; }
const char help_str[] =
"Commands:\n"
+ " autofanctrl <on>\n"
+ " Turn on automatic fan speed control.\n"
" backlight <enabled>\n"
" Enable/disable LCD backlight\n"
" battery\n"
@@ -49,38 +51,44 @@ const char help_str[] =
" Sets the SMI mask for EC host events\n"
" eventsetwakemask <mask>\n"
" Sets the wake mask for EC host events\n"
+ " flasherase <offset> <size>\n"
+ " Erases EC flash\n"
" flashinfo\n"
" Prints information on the EC flash\n"
" flashread <offset> <size> <outfile>\n"
" Reads from EC flash to a file\n"
" flashwrite <offset> <infile>\n"
" Writes to EC flash from a file\n"
- " flasherase <offset> <size>\n"
- " Erases EC flash\n"
" hello\n"
" Checks for basic communication with EC\n"
" kbpress\n"
" Simulate key press\n"
" lightbar [CMDS]\n"
" Various lightbar control commands\n"
- " vboot [VAL]\n"
- " Get or set vboot flags\n"
" pstoreinfo\n"
" Prints information on the EC host persistent storage\n"
" pstoreread <offset> <size> <outfile>\n"
" Reads from EC host persistent storage to a file\n"
" pstorewrite <offset> <infile>\n"
" Writes to EC host persistent storage from a file\n"
+ " pwmgetfanrpm\n"
+ " Prints current fan RPM\n"
+ " pwmgetkblight\n"
+ " Prints current keyboard backlight percent\n"
+ " pwmsetfanrpm <targetrpm>\n"
+ " Set target fan RPM\n"
+ " pwmsetkblight <percent>\n"
+ " Set keyboard backlight in percent\n"
" queryec\n"
" Does an ACPI Query Embedded Controller command\n"
" readtest <patternoffset> <size>\n"
" Reads a pattern from the EC via LPC\n"
+ " reboot_ec <RO|A|B>\n"
+ " Reboot EC to RO or RW A/B\n"
" sertest\n"
" Serial output test for COM2\n"
" switches\n"
" Prints current EC switch positions\n"
- " version\n"
- " Prints EC version\n"
" temps <sensorid>\n"
" Print temperature.\n"
" tempsinfo <sensorid>\n"
@@ -89,22 +97,14 @@ const char help_str[] =
" Get the threshold temperature value from thermal engine.\n"
" thermalset <sensor_id> <threshold_id> <value>\n"
" Set the threshold temperature value for thermal engine.\n"
- " wireless <mask>\n"
- " Enable/disable WLAN/Bluetooth radio\n"
- " autofanctrl <on>\n"
- " Turn on automatic fan speed control.\n"
- " pwmgetfanrpm\n"
- " Prints current fan RPM\n"
- " pwmsetfanrpm <targetrpm>\n"
- " Set target fan RPM\n"
- " pwmgetkblight\n"
- " Prints current keyboard backlight percent\n"
- " pwmsetkblight <percent>\n"
- " Set keyboard backlight in percent\n"
" usbchargemode <port> <mode>\n"
" Set USB charging mode\n"
- " reboot_ec <RO|A|B>\n"
- " Reboot EC to RO or RW A/B\n"
+ " vboot [VAL]\n"
+ " Get or set vboot flags\n"
+ " version\n"
+ " Prints EC version\n"
+ " wireless <mask>\n"
+ " Enable/disable WLAN/Bluetooth radio\n"
"\n"
"Not working for you? Make sure LPC I/O is configured:\n"
" pci_write32 0 0x1f 0 0x88 0x00fc0801\n"