Skip to content

Commit

Permalink
evtimer: in evtimer_print also print first event
Browse files Browse the repository at this point in the history
  • Loading branch information
Kees Bakker authored and keestux committed Jun 24, 2019
1 parent 1308a9e commit dc39903
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sys/evtimer/evtimer.c
Expand Up @@ -199,10 +199,11 @@ void evtimer_init(evtimer_t *evtimer, evtimer_callback_t handler)
void evtimer_print(const evtimer_t *evtimer)
{
evtimer_event_t *list = evtimer->events;
int nr = 0;

while (list->next) {
evtimer_event_t *list_entry = list->next;
printf("ev offset=%u\n", (unsigned)list_entry->offset);
while (list) {
nr++;
printf("ev #%d offset=%u\n", nr, (unsigned)list->offset);
list = list->next;
}
}

0 comments on commit dc39903

Please sign in to comment.