diff options
| author | Keith Packard <keithp@keithp.com> | 2014-06-10 09:37:43 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2014-06-10 09:38:53 -0700 | 
| commit | 75df97b5f6ade3310618a477b685d39b7fd4666e (patch) | |
| tree | c4e77a81e5a3735d3bfe800d4cbfb1b64951ce7c /src/kernel/ao_cmd.c | |
| parent | 998eae61ecf56dd6ead4ec6ad82c952ae84170df (diff) | |
altos: Report total available log space in version command
This provides a more accurate means of determining available log space
than guessing whether some portion of the flash chip holds
configuration data.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/kernel/ao_cmd.c')
| -rw-r--r-- | src/kernel/ao_cmd.c | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/src/kernel/ao_cmd.c b/src/kernel/ao_cmd.c index 69372fed..5d8683e1 100644 --- a/src/kernel/ao_cmd.c +++ b/src/kernel/ao_cmd.c @@ -283,6 +283,9 @@ version(void)  #endif  #if HAS_LOG  	       "log-format       %u\n" +#if !DISABLE_LOG_SPACE +	       "log-space	 %lu\n" +#endif  #endif  #if defined(AO_BOOT_APPLICATION_BASE) && defined(AO_BOOT_APPLICATION_BOUND)  	       "program-space    %u\n" @@ -295,6 +298,9 @@ version(void)  #endif  #if HAS_LOG  	       , ao_log_format +#if !DISABLE_LOG_SPACE +	       , (unsigned long) ao_storage_log_max +#endif  #endif  #if defined(AO_BOOT_APPLICATION_BASE) && defined(AO_BOOT_APPLICATION_BOUND)  	       , (uint32_t) AO_BOOT_APPLICATION_BOUND - (uint32_t) AO_BOOT_APPLICATION_BASE  | 
