sys/log: Extend log-storage command with watermark info
@@ -151,6 +151,10 @@ shell_log_storage_cmd(int argc, char **argv)
} else {
console_printf("%s: %d of %d used\n", log->l_name,
(unsigned)info.used, (unsigned)info.size);
+#if MYNEWT_VAL(LOG_STORAGE_WATERMARK)
+ console_printf("%s: %d of %d used by unread entries\n", log->l_name,
+ (unsigned)info.used_unread, (unsigned)info.size);
+#endif
}
}
