@@ -78,7 +78,7 @@ typedef struct {
7878#if CONFIG_IEEE802154_RECORD_STATE
7979#define IEEE802154_ASSERT_RECORD_STATE_SIZE CONFIG_IEEE802154_RECORD_STATE_SIZE
8080#define ieee802154_set_state (a ) do { s_ieee802154_state = a; \
81- sprintf( g_ieee802154_probe.state[g_ieee802154_probe.state_index].line_str, "%d", __LINE__) ; \
81+ g_ieee802154_probe.state[g_ieee802154_probe.state_index].line = __LINE__; \
8282 g_ieee802154_probe.state[g_ieee802154_probe.state_index].timestamp = esp_timer_get_time(); \
8383 g_ieee802154_probe.state[g_ieee802154_probe.state_index++].state = a; \
8484 g_ieee802154_probe.state_index = \
@@ -89,7 +89,7 @@ typedef struct {
8989 * @brief The table of recording IEEE802154 state command.
9090 */
9191typedef struct {
92- char line_str [ 5 ] ; /*!< record which line in esp_ieee802154_dev.c changes the state */
92+ uint32_t line ; /*!< record which line in esp_ieee802154_dev.c changes the state */
9393 ieee802154_state_t state ; /*!< record current radio state */
9494 uint64_t timestamp ; /*!< record timestamp */
9595} ieee802154_state_info_t ;
@@ -100,7 +100,7 @@ typedef struct {
100100#if CONFIG_IEEE802154_RECORD_CMD
101101#define IEEE802154_ASSERT_RECORD_CMD_SIZE CONFIG_IEEE802154_RECORD_CMD_SIZE
102102#define ieee802154_set_cmd (a ) do { ieee802154_ll_set_cmd(a); \
103- sprintf( g_ieee802154_probe.cmd[g_ieee802154_probe.cmd_index].line_str, "%d", __LINE__) ; \
103+ g_ieee802154_probe.cmd[g_ieee802154_probe.cmd_index].line = __LINE__; \
104104 g_ieee802154_probe.cmd[g_ieee802154_probe.cmd_index].timestamp = esp_timer_get_time(); \
105105 g_ieee802154_probe.cmd[g_ieee802154_probe.cmd_index++].cmd = a; \
106106 g_ieee802154_probe.cmd_index = \
@@ -111,7 +111,7 @@ typedef struct {
111111 * @brief The table of recording IEEE802154 radio command.
112112 */
113113typedef struct {
114- char line_str [ 5 ] ; /*!< record which line in esp_ieee802154_dev.c set the command */
114+ uint32_t line ; /*!< record which line in esp_ieee802154_dev.c set the command */
115115 ieee802154_ll_cmd_t cmd ; /*!< record current command */
116116 uint64_t timestamp ; /*!< record timestamp */
117117} ieee802154_cmd_info_t ;
0 commit comments