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
/
event-class.c
diff --git
a/src/lib/trace-ir/event-class.c
b/src/lib/trace-ir/event-class.c
index 49ff7ff6c0a109cf9d3f1528e522ebf8535f1d69..5bc572f2516dbbaafa6f20aa844973a64f1b7e89 100644
(file)
--- a/
src/lib/trace-ir/event-class.c
+++ b/
src/lib/trace-ir/event-class.c
@@
-122,7
+122,7
@@
struct bt_event_class *create_event_class_with_id(
stream_class, id);
event_class = g_new0(struct bt_event_class, 1);
if (!event_class) {
stream_class, id);
event_class = g_new0(struct bt_event_class, 1);
if (!event_class) {
- BT_L
OGE_STR
("Failed to allocate one event class.");
+ BT_L
IB_LOGE_APPEND_CAUSE
("Failed to allocate one event class.");
goto error;
}
goto error;
}
@@
-133,14
+133,14
@@
struct bt_event_class *create_event_class_with_id(
BT_PROPERTY_AVAILABILITY_NOT_AVAILABLE, 0);
event_class->name.str = g_string_new(NULL);
if (!event_class->name.str) {
BT_PROPERTY_AVAILABILITY_NOT_AVAILABLE, 0);
event_class->name.str = g_string_new(NULL);
if (!event_class->name.str) {
- BT_L
OGE_STR
("Failed to allocate a GString.");
+ BT_L
IB_LOGE_APPEND_CAUSE
("Failed to allocate a GString.");
ret = -1;
goto end;
}
event_class->emf_uri.str = g_string_new(NULL);
if (!event_class->emf_uri.str) {
ret = -1;
goto end;
}
event_class->emf_uri.str = g_string_new(NULL);
if (!event_class->emf_uri.str) {
- BT_L
OGE_STR
("Failed to allocate a GString.");
+ BT_L
IB_LOGE_APPEND_CAUSE
("Failed to allocate a GString.");
ret = -1;
goto end;
}
ret = -1;
goto end;
}
@@
-150,7
+150,8
@@
struct bt_event_class *create_event_class_with_id(
(bt_object_pool_destroy_object_func) free_event,
event_class);
if (ret) {
(bt_object_pool_destroy_object_func) free_event,
event_class);
if (ret) {
- BT_LOGE("Failed to initialize event pool: ret=%d",
+ BT_LIB_LOGE_APPEND_CAUSE(
+ "Failed to initialize event pool: ret=%d",
ret);
goto error;
}
ret);
goto error;
}
This page took
0.024972 seconds
and
4
git commands to generate.