Skip to content

logs: Add support for reading number of entries since an index for a particular log#204

Closed
vrahane wants to merge 1 commit intoapache:masterfrom
vrahane:vipul/log_num_entries_support
Closed

logs: Add support for reading number of entries since an index for a particular log#204
vrahane wants to merge 1 commit intoapache:masterfrom
vrahane:vipul/log_num_entries_support

Conversation

@vrahane
Copy link
Contributor

@vrahane vrahane commented Mar 21, 2024

Related mcumgr PR: apache/mynewt-mcumgr#172
Related mynewt-core PR: apache/mynewt-core#3168

Example:
Successful/Valid case:

$newtmgr --connstring peer_name="my_dev" --conntype oic_ble log num_entries reboot_log 0
Number of entries: 43

Error case:

<Invalid log>
$newtmgr --connstring peer_name="my_dev" --conntype oic_ble log num_entries reboot 0
error: 5

<Invalid index>
$newtmgr --connstring peer_name="my_dev" --conntype oic_ble log num_entries reboot 4000
error: 5

@vrahane vrahane force-pushed the vipul/log_num_entries_support branch from 542fb93 to f8577c6 Compare March 21, 2024 04:51
@vrahane vrahane closed this Mar 21, 2024
@vrahane vrahane deleted the vipul/log_num_entries_support branch March 21, 2024 04:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant