Skip to content

Commit 2fc0c12

Browse files
rlubosnashif
authored andcommitted
tests: net: conn_mgr_monitor: Remove debug logs
Printing event name during event processing caused unexpected delays on slower platforms, making the tests fail. As according to the tests author those prints were unintentional leftovers, just remove them. Signed-off-by: Robert Lubos <[email protected]>
1 parent 1ccd972 commit 2fc0c12

File tree

1 file changed

+0
-6
lines changed
  • tests/net/conn_mgr_monitor/src

1 file changed

+0
-6
lines changed

tests/net/conn_mgr_monitor/src/main.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -150,14 +150,12 @@ void l4_handler(struct net_mgmt_event_callback *cb, uint32_t event, struct net_i
150150
{
151151
if (event == NET_EVENT_L4_CONNECTED) {
152152
k_mutex_lock(&stats_mutex, K_FOREVER);
153-
printk("NET_EVENT_L4_CONNECTED\n");
154153
global_stats.conn_count_gen += 1;
155154
global_stats.event_count_gen += 1;
156155
global_stats.conn_iface_gen = iface;
157156
k_mutex_unlock(&stats_mutex);
158157
} else if (event == NET_EVENT_L4_DISCONNECTED) {
159158
k_mutex_lock(&stats_mutex, K_FOREVER);
160-
printk("NET_EVENT_L4_DISCONNECTED\n");
161159
global_stats.dconn_count_gen += 1;
162160
global_stats.event_count_gen += 1;
163161
global_stats.dconn_iface_gen = iface;
@@ -171,28 +169,24 @@ void conn_handler(struct net_mgmt_event_callback *cb, uint32_t event, struct net
171169
{
172170
if (event == NET_EVENT_L4_IPV6_CONNECTED) {
173171
k_mutex_lock(&stats_mutex, K_FOREVER);
174-
printk("NET_EVENT_L4_IPV6_CONNECTED\n");
175172
global_stats.conn_count_ipv6 += 1;
176173
global_stats.event_count_ipv6 += 1;
177174
global_stats.conn_iface_ipv6 = iface;
178175
k_mutex_unlock(&stats_mutex);
179176
} else if (event == NET_EVENT_L4_IPV6_DISCONNECTED) {
180177
k_mutex_lock(&stats_mutex, K_FOREVER);
181-
printk("NET_EVENT_L4_IPV6_DISCONNECTED\n");
182178
global_stats.dconn_count_ipv6 += 1;
183179
global_stats.event_count_ipv6 += 1;
184180
global_stats.dconn_iface_ipv6 = iface;
185181
k_mutex_unlock(&stats_mutex);
186182
} else if (event == NET_EVENT_L4_IPV4_CONNECTED) {
187183
k_mutex_lock(&stats_mutex, K_FOREVER);
188-
printk("NET_EVENT_L4_IPV4_CONNECTED\n");
189184
global_stats.conn_count_ipv4 += 1;
190185
global_stats.event_count_ipv4 += 1;
191186
global_stats.conn_iface_ipv4 = iface;
192187
k_mutex_unlock(&stats_mutex);
193188
} else if (event == NET_EVENT_L4_IPV4_DISCONNECTED) {
194189
k_mutex_lock(&stats_mutex, K_FOREVER);
195-
printk("NET_EVENT_L4_IPV4_DISCONNECTED\n");
196190
global_stats.dconn_count_ipv4 += 1;
197191
global_stats.event_count_ipv4 += 1;
198192
global_stats.dconn_iface_ipv4 = iface;

0 commit comments

Comments
 (0)