X-Git-Url: https://git.efficios.com/?a=blobdiff_plain;f=lib%2Fgraph%2Fnotification%2Finactivity.c;h=2472cba1fa7ca657eedbc55e2c5d78d724338f84;hb=d94d92ac6656fd252a5d7bb4f6c76935ba18e62e;hp=3ca527c8440b552865c827d9d4a3429d997b2e0c;hpb=28e6ca8b6e08d1cdd1af81ae819aa39baa206eaf;p=babeltrace.git diff --git a/lib/graph/notification/inactivity.c b/lib/graph/notification/inactivity.c index 3ca527c8..2472cba1 100644 --- a/lib/graph/notification/inactivity.c +++ b/lib/graph/notification/inactivity.c @@ -30,7 +30,6 @@ #include #include #include -#include #include #include @@ -40,7 +39,7 @@ void bt_notification_inactivity_destroy(struct bt_object *obj) struct bt_notification_inactivity *notification = (struct bt_notification_inactivity *) obj; - BT_LOGD("Destroying inactivity notification: addr=%p", notification); + BT_LIB_LOGD("Destroying inactivity notification: %!+n", notification); if (notification->default_cv) { bt_clock_value_recycle(notification->default_cv); @@ -50,15 +49,19 @@ void bt_notification_inactivity_destroy(struct bt_object *obj) } struct bt_private_notification *bt_private_notification_inactivity_create( - struct bt_private_connection_private_notification_iterator *notif_iter, + struct bt_self_notification_iterator *self_notif_iter, struct bt_clock_class *default_clock_class) { + struct bt_self_component_port_input_notification_iterator *notif_iter = + (void *) self_notif_iter; struct bt_notification_inactivity *notification; struct bt_notification *ret_notif = NULL; BT_ASSERT_PRE_NON_NULL(notif_iter, "Notification iterator"); BT_ASSERT_PRE_NON_NULL(default_clock_class, "Default clock class"); - BT_LOGD_STR("Creating inactivity notification object."); + BT_LIB_LOGD("Creating inactivity notification object: " + "%![iter-]+i, %![default-cc-]+K", notif_iter, + default_clock_class); notification = g_new0(struct bt_notification_inactivity, 1); if (!notification) { BT_LOGE_STR("Failed to allocate one inactivity notification."); @@ -73,8 +76,7 @@ struct bt_private_notification *bt_private_notification_inactivity_create( goto error; } - BT_LOGD("Created inactivity notification object: addr=%p", - ret_notif); + BT_LIB_LOGD("Created inactivity notification object: %!+n", ret_notif); goto end; error: