Skip to content

Commit

Permalink
fixup! gnrc_mac: adapated timeout error debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuo shuguo committed Dec 19, 2018
1 parent 414ec0d commit a9beec4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sys/net/gnrc/link_layer/gnrc_mac/timeout.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,17 @@ void gnrc_mac_set_timeout(gnrc_mac_timeout_t *mac_timeout, gnrc_mac_timeout_type

gnrc_mac_timeout_event_t *timeout_event;
if ((timeout_event = _gnrc_mac_acquire_timeout(mac_timeout, type))) {
DEBUG("[gnrc_mac] Set timeout %s in %" PRIu32 " us\n",
gnrc_mac_timeout_names[type], offset);
DEBUG("[gnrc_mac] Set timeout type-%d in %" PRIu32 " us\n",
type, offset);
timeout_event->msg_event.event.offset = offset;
timeout_event->msg_event.msg.type = GNRC_MAC_EVENT_TIMEOUT_TYPE;
timeout_event->msg_event.msg.content.ptr = (void *) timeout_event;
timeout_event->msg_event.msg.sender_pid = pid;
evtimer_add(&mac_timeout->evtimer, &timeout_event->msg_event.event);
}
else {
DEBUG("[gnrc_mac] Cannot set timeout %s, too many concurrent timeouts\n",
gnrc_mac_timeout_names[type]);
DEBUG("[gnrc_mac] Cannot set timeout type-%d, too many concurrent timeouts\n",
type);
}
}

Expand Down

0 comments on commit a9beec4

Please sign in to comment.