X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Flib%2Ftrace-ir%2Fclock-class.c;h=43341d0f963561a77970c3724cf0169b95186b09;hb=870631a2db01676b476dbee615aade0a22926bcd;hp=fdeef9289af4ddf85f9b329f7ee64efaa2fff822;hpb=3cd4c495b8c065ababc249f66d460c4a707d415a;p=babeltrace.git diff --git a/src/lib/trace-ir/clock-class.c b/src/lib/trace-ir/clock-class.c index fdeef928..43341d0f 100644 --- a/src/lib/trace-ir/clock-class.c +++ b/src/lib/trace-ir/clock-class.c @@ -90,20 +90,20 @@ struct bt_clock_class *bt_clock_class_create(bt_self_component *self_comp) clock_class = g_new0(struct bt_clock_class, 1); if (!clock_class) { - BT_LOGE_STR("Failed to allocate one clock class."); + BT_LIB_LOGE_APPEND_CAUSE("Failed to allocate one clock class."); goto error; } bt_object_init_shared(&clock_class->base, destroy_clock_class); clock_class->name.str = g_string_new(NULL); if (!clock_class->name.str) { - BT_LOGE_STR("Failed to allocate a GString."); + BT_LIB_LOGE_APPEND_CAUSE("Failed to allocate a GString."); goto error; } clock_class->description.str = g_string_new(NULL); if (!clock_class->description.str) { - BT_LOGE_STR("Failed to allocate a GString."); + BT_LIB_LOGE_APPEND_CAUSE("Failed to allocate a GString."); goto error; } @@ -116,7 +116,8 @@ struct bt_clock_class *bt_clock_class_create(bt_self_component *self_comp) free_clock_snapshot, clock_class); if (ret) { - BT_LOGE("Failed to initialize clock snapshot pool: ret=%d", + BT_LIB_LOGE_APPEND_CAUSE( + "Failed to initialize clock snapshot pool: ret=%d", ret); goto error; }