@@ -237,29 +237,29 @@ static bool compare_data(struct net_buf *buf, struct net_6lo_data *data)
237
237
if (net_buf_frags_len (buf -> frags ) !=
238
238
(NET_IPV6UDPH_LEN + remaining )) {
239
239
240
- TC_PRINT ("mismatch lengths, expected %d received %d \n" ,
241
- NET_IPV6UDPH_LEN + remaining ,
242
- net_buf_frags_len (buf -> frags ));
240
+ TC_PRINT ("mismatch lengths, expected %d received %zu \n" ,
241
+ NET_IPV6UDPH_LEN + remaining ,
242
+ net_buf_frags_len (buf -> frags ));
243
243
244
244
return false;
245
245
}
246
246
} else if (data -> nh_icmp ) {
247
247
if (net_buf_frags_len (buf -> frags ) !=
248
248
(NET_IPV6ICMPH_LEN + remaining )) {
249
249
250
- TC_PRINT ("mismatch lengths, expected %d received %d \n" ,
251
- NET_IPV6ICMPH_LEN + remaining ,
252
- net_buf_frags_len (buf -> frags ));
250
+ TC_PRINT ("mismatch lengths, expected %d received %zu \n" ,
251
+ NET_IPV6ICMPH_LEN + remaining ,
252
+ net_buf_frags_len (buf -> frags ));
253
253
254
254
return false;
255
255
}
256
256
} else {
257
257
if (net_buf_frags_len (buf -> frags ) !=
258
258
(NET_IPV6H_LEN + remaining )) {
259
259
260
- TC_PRINT ("mismatch lengths, expected %d received %d \n" ,
261
- NET_IPV6H_LEN + remaining ,
262
- net_buf_frags_len (buf -> frags ));
260
+ TC_PRINT ("mismatch lengths, expected %d received %zu \n" ,
261
+ NET_IPV6H_LEN + remaining ,
262
+ net_buf_frags_len (buf -> frags ));
263
263
264
264
return false;
265
265
}
@@ -818,7 +818,7 @@ static int test_6lo(struct net_6lo_data *data)
818
818
}
819
819
820
820
#if DEBUG > 0
821
- TC_PRINT ("length before compression %d \n" ,
821
+ TC_PRINT ("length before compression %zu \n" ,
822
822
net_buf_frags_len (buf -> frags ));
823
823
net_hexdump_frags ("before-compression" , buf );
824
824
#endif
@@ -829,7 +829,7 @@ static int test_6lo(struct net_6lo_data *data)
829
829
}
830
830
831
831
#if DEBUG > 0
832
- TC_PRINT ("length after compression %d \n" ,
832
+ TC_PRINT ("length after compression %zu \n" ,
833
833
net_buf_frags_len (buf -> frags ));
834
834
net_hexdump_frags ("after-compression" , buf );
835
835
#endif
@@ -840,7 +840,7 @@ static int test_6lo(struct net_6lo_data *data)
840
840
}
841
841
842
842
#if DEBUG > 0
843
- TC_PRINT ("length after uncompression %d \n" ,
843
+ TC_PRINT ("length after uncompression %zu \n" ,
844
844
net_buf_frags_len (buf -> frags ));
845
845
net_hexdump_frags ("after-uncompression" , buf );
846
846
#endif
0 commit comments