Skip to content

Commit 7a117b6

Browse files
broglep-workcarlescufi
authored andcommitted
net: lwm2m: fix observation path list ordering test
adjust test to compile with latest main code and changes by PR #53677 Signed-off-by: Pascal Brogle <[email protected]>
1 parent c0fb33a commit 7a117b6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/net/lib/lwm2m/engine/src/lwm2m_observation.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ static void assert_path_list_order(sys_slist_t *lwm2m_path_list)
5454
uint16_t res_id_max;
5555
uint16_t res_inst_id_max;
5656

57-
char next_path_str[LWM2M_MAX_PATH_STR_LEN];
58-
char prev_path_str[LWM2M_MAX_PATH_STR_LEN];
57+
char next_path_str[LWM2M_MAX_PATH_STR_SIZE];
58+
char prev_path_str[LWM2M_MAX_PATH_STR_SIZE];
5959

6060
if (sys_slist_is_empty(lwm2m_path_list)) {
6161
return;
@@ -230,9 +230,9 @@ static void print_path_list(sys_slist_t *lwm2m_path_list, const char *name)
230230
}
231231

232232
SYS_SLIST_FOR_EACH_CONTAINER_SAFE(lwm2m_path_list, entry, tmp, node) {
233-
char buf[LWM2M_MAX_PATH_STR_LEN];
233+
char buf[LWM2M_MAX_PATH_STR_SIZE];
234234

235-
lwm2m_path_to_string(buf, LWM2M_MAX_PATH_STR_LEN, &entry->path, entry->path.level);
235+
lwm2m_path_to_string(buf, LWM2M_MAX_PATH_STR_SIZE, &entry->path, entry->path.level);
236236
TEST_VERBOSE_PRINT("- %s\n", buf);
237237
}
238238
}

0 commit comments

Comments
 (0)