diff options
author | Anthony Towns <aj@erisian.com.au> | 2011-02-27 11:11:12 +1000 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-03-07 00:01:46 -0800 |
commit | 8cdf4fb051c22b35c251d90bc288551f7c2898bf (patch) | |
tree | a3b39a462dad7f9042ff6b34bdc9ff5e0fea0dec /src/ao_storage.c | |
parent | 2cfe205de4242398e69c9e7c613af0d2a7094686 (diff) |
src/ao_cmd: Shave off bytes from doc strings
Switch to using { func, "X args\0Desc" } to specify command, saving
a char field by looking at help[0] instead, and reduce help length by
doing alignment with printf instead of hardcoded spaces.
Diffstat (limited to 'src/ao_storage.c')
-rw-r--r-- | src/ao_storage.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/ao_storage.c b/src/ao_storage.c index 709259ee..9f0f75fb 100644 --- a/src/ao_storage.c +++ b/src/ao_storage.c @@ -166,14 +166,12 @@ ao_storage_info(void) __reentrant } __code struct ao_cmds ao_storage_cmds[] = { - { 'f', ao_storage_info, "f Show storage info" }, - { 'e', ao_storage_dump, "e <block> Dump a block of flash data" }, -#if 0 - { 'w', ao_storage_store, "w <block> <start> <len> <data> ... Write data to flash" }, +#ifdef HAS_STORAGE_DBG + { ao_storage_store, "w <block> <start> <len> <data> ...\0Write data to flash" }, #endif - { 'z', ao_storage_zap, "z <block> Erase flash containing <block>" }, - { 'Z', ao_storage_zapall,"Z <key> Erase all logs. <key> is doit with D&I" }, - { 0, ao_storage_zap, NULL }, + { ao_storage_zap, "z <block>\0Erase flash containing <block>" }, + { ao_storage_zapall,"Z <key>\0Erase all logs. <key> is doit with D&I" }, + { 0, NULL }, }; void |