TimJTi commented on code in PR #3068: URL: https://github.com/apache/nuttx-apps/pull/3068#discussion_r2106264435
########## boot/nxboot/include/nxboot.h: ########## @@ -131,10 +132,41 @@ struct nxboot_state enum nxboot_update_type next_boot; /* nxboot_update_type with next operation */ }; +enum progress_type_e +{ + nxboot_info = 0, /* Prefixes arg. string with "INFO:" */ + nxboot_error, /* Prefixes arg. string with "ERR:" */ + nxboot_progress_start, /* Prints arg. string with no newline to allow ..... sequence to follow */ + nxboot_progress_dot, /* Prints of a "." to the ..... progress sequence */ + nxboot_progress_end, /* Flags end of a "..." progrees sequence and prints newline */ +}; + +enum progress_msg_e +{ + startup_msg = 0, + power_reset, + soft_reset, + found_bootable_image, + no_bootable_image, + boardioc_image_boot_fail, + ramcopy_started, + recovery_revert, + recovery_create, + update_from_update, + validate_primary, + validate_recovery, + validate_update, + recovery_created, + recovery_invalid, + update_failed, +}; + /**************************************************************************** * Public Function Prototypes ****************************************************************************/ +void nxboot_progress(enum progress_type_e type, ...); Review Comment: I have added documentation AND progress as a %. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org