tests: net: Fix format issues

Fixes:
error: format '%u' expects argument of type 'unsigned int'

Change-Id: I02aaaea79150967d7831d89d0c05427bf2685708
Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
Tomasz Bursztyka 2016-12-21 11:17:06 +01:00
commit 56f25b49a9
2 changed files with 13 additions and 13 deletions

View file

@ -237,9 +237,9 @@ static bool compare_data(struct net_buf *buf, struct net_6lo_data *data)
if (net_buf_frags_len(buf->frags) != if (net_buf_frags_len(buf->frags) !=
(NET_IPV6UDPH_LEN + remaining)) { (NET_IPV6UDPH_LEN + remaining)) {
TC_PRINT("mismatch lengths, expected %d received %d\n", TC_PRINT("mismatch lengths, expected %d received %zu\n",
NET_IPV6UDPH_LEN + remaining, NET_IPV6UDPH_LEN + remaining,
net_buf_frags_len(buf->frags)); net_buf_frags_len(buf->frags));
return false; return false;
} }
@ -247,9 +247,9 @@ static bool compare_data(struct net_buf *buf, struct net_6lo_data *data)
if (net_buf_frags_len(buf->frags) != if (net_buf_frags_len(buf->frags) !=
(NET_IPV6ICMPH_LEN + remaining)) { (NET_IPV6ICMPH_LEN + remaining)) {
TC_PRINT("mismatch lengths, expected %d received %d\n", TC_PRINT("mismatch lengths, expected %d received %zu\n",
NET_IPV6ICMPH_LEN + remaining, NET_IPV6ICMPH_LEN + remaining,
net_buf_frags_len(buf->frags)); net_buf_frags_len(buf->frags));
return false; return false;
} }
@ -257,9 +257,9 @@ static bool compare_data(struct net_buf *buf, struct net_6lo_data *data)
if (net_buf_frags_len(buf->frags) != if (net_buf_frags_len(buf->frags) !=
(NET_IPV6H_LEN + remaining)) { (NET_IPV6H_LEN + remaining)) {
TC_PRINT("mismatch lengths, expected %d received %d\n", TC_PRINT("mismatch lengths, expected %d received %zu\n",
NET_IPV6H_LEN + remaining, NET_IPV6H_LEN + remaining,
net_buf_frags_len(buf->frags)); net_buf_frags_len(buf->frags));
return false; return false;
} }
@ -818,7 +818,7 @@ static int test_6lo(struct net_6lo_data *data)
} }
#if DEBUG > 0 #if DEBUG > 0
TC_PRINT("length before compression %d\n", TC_PRINT("length before compression %zu\n",
net_buf_frags_len(buf->frags)); net_buf_frags_len(buf->frags));
net_hexdump_frags("before-compression", buf); net_hexdump_frags("before-compression", buf);
#endif #endif
@ -829,7 +829,7 @@ static int test_6lo(struct net_6lo_data *data)
} }
#if DEBUG > 0 #if DEBUG > 0
TC_PRINT("length after compression %d\n", TC_PRINT("length after compression %zu\n",
net_buf_frags_len(buf->frags)); net_buf_frags_len(buf->frags));
net_hexdump_frags("after-compression", buf); net_hexdump_frags("after-compression", buf);
#endif #endif
@ -840,7 +840,7 @@ static int test_6lo(struct net_6lo_data *data)
} }
#if DEBUG > 0 #if DEBUG > 0
TC_PRINT("length after uncompression %d\n", TC_PRINT("length after uncompression %zu\n",
net_buf_frags_len(buf->frags)); net_buf_frags_len(buf->frags));
net_hexdump_frags("after-uncompression", buf); net_hexdump_frags("after-uncompression", buf);
#endif #endif

View file

@ -87,7 +87,7 @@ static inline void insert_frag_dummy_way(struct net_buf *buf)
static int fake_tx(struct device *dev, struct net_buf *buf) static int fake_tx(struct device *dev, struct net_buf *buf)
{ {
TC_PRINT("Sending buffer %p - length %u\n", TC_PRINT("Sending buffer %p - length %zu\n",
buf, net_buf_frags_len(buf)); buf, net_buf_frags_len(buf));
net_nbuf_set_ll_reserve(current_buf, net_nbuf_ll_reserve(buf)); net_nbuf_set_ll_reserve(current_buf, net_nbuf_ll_reserve(buf));