projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: use BT_LIB_LOG*_APPEND_CAUSE() where appropriate
[babeltrace.git]
/
src
/
lib
/
trace-ir
/
clock-snapshot.c
diff --git
a/src/lib/trace-ir/clock-snapshot.c
b/src/lib/trace-ir/clock-snapshot.c
index 757e1cb8101d4cea685dc8f2b24f416789258c78..53f6be654478454fb051468c4e5cbfd75b33278d 100644
(file)
--- a/
src/lib/trace-ir/clock-snapshot.c
+++ b/
src/lib/trace-ir/clock-snapshot.c
@@
-55,7
+55,8
@@
struct bt_clock_snapshot *bt_clock_snapshot_new(
clock_class);
ret = g_new0(struct bt_clock_snapshot, 1);
if (!ret) {
clock_class);
ret = g_new0(struct bt_clock_snapshot, 1);
if (!ret) {
- BT_LOGE_STR("Failed to allocate one clock snapshot.");
+ BT_LIB_LOGE_APPEND_CAUSE(
+ "Failed to allocate one clock snapshot.");
goto end;
}
goto end;
}
@@
-78,7
+79,8
@@
struct bt_clock_snapshot *bt_clock_snapshot_create(
BT_ASSERT(clock_class);
clock_snapshot = bt_object_pool_create_object(&clock_class->cs_pool);
if (!clock_snapshot) {
BT_ASSERT(clock_class);
clock_snapshot = bt_object_pool_create_object(&clock_class->cs_pool);
if (!clock_snapshot) {
- BT_LIB_LOGE("Cannot allocate one clock snapshot from clock class's clock snapshot pool: "
+ BT_LIB_LOGE_APPEND_CAUSE(
+ "Cannot allocate one clock snapshot from clock class's clock snapshot pool: "
"%![cc-]+K", clock_class);
goto error;
}
"%![cc-]+K", clock_class);
goto error;
}
This page took
0.023756 seconds
and
4
git commands to generate.