Added more debug messages.

This commit is contained in:
Ulysse Cura 2026-08-10 21:03:15 +02:00
parent 67c5c18fa2
commit 50dc383e2d
1 changed files with 6 additions and 0 deletions

View File

@ -53,6 +53,8 @@ int event_bus_new_topic(event_bus_t *event_bus, size_t id)
if(linked_list_push_back(&event_bus->topics, topic_elem)) return EXIT_FAILURE;
debug_printf("Created new topic with id : %lu", id);
return EXIT_SUCCESS;
}
@ -119,6 +121,8 @@ int event_bus_publish(event_bus_t *event_bus, size_t id, ...)
va_end(args_copy);
va_end(args);
debug_printf("Published event on topic with id : %lu", id);
return EXIT_SUCCESS;
}
@ -138,5 +142,7 @@ int event_bus_subscribe(event_bus_t *event_bus, size_t id, callback_t callback,
if(linked_list_push_back(&topic->subscriptions, subscription_elem)) return EXIT_FAILURE;
debug_printf("Subscribed to topic with id : %lu", id);
return EXIT_SUCCESS;
}