altos: Report total available log space in version command
[fw/altos] / src / kernel / ao_cmd.c
index cd662314177c80a61520040c5932481dafc67bad..5d8683e132da42ab3a3a3c35419bc456e1604106 100644 (file)
@@ -23,7 +23,11 @@ __pdata uint32_t ao_cmd_lex_u32;
 __pdata char   ao_cmd_lex_c;
 __pdata enum ao_cmd_status ao_cmd_status;
 
+#if AO_PYRO_NUM
+#define CMD_LEN 128
+#else
 #define CMD_LEN        48
+#endif
 
 static __xdata char    cmd_line[CMD_LEN];
 static __pdata uint8_t cmd_len;
@@ -279,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"
@@ -291,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