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
/
plugin
/
plugin.h
diff --git
a/src/lib/plugin/plugin.h
b/src/lib/plugin/plugin.h
index 417d116c436fe609ddb3e78a0708da60f4867eee..616987223ca9023bfea2d64dd7da70ae2cc92b21 100644
(file)
--- a/
src/lib/plugin/plugin.h
+++ b/
src/lib/plugin/plugin.h
@@
-175,7
+175,7
@@
struct bt_plugin *bt_plugin_create_empty(enum bt_plugin_type type)
plugin = g_new0(struct bt_plugin, 1);
if (!plugin) {
plugin = g_new0(struct bt_plugin, 1);
if (!plugin) {
- BT_L
OGE_STR
("Failed to allocate one plugin.");
+ BT_L
IB_LOGE_APPEND_CAUSE
("Failed to allocate one plugin.");
goto error;
}
goto error;
}
@@
-187,7
+187,7
@@
struct bt_plugin *bt_plugin_create_empty(enum bt_plugin_type type)
g_ptr_array_new_with_free_func(
(GDestroyNotify) bt_object_put_ref);
if (!plugin->src_comp_classes) {
g_ptr_array_new_with_free_func(
(GDestroyNotify) bt_object_put_ref);
if (!plugin->src_comp_classes) {
- BT_L
OGE_STR
("Failed to allocate a GPtrArray.");
+ BT_L
IB_LOGE_APPEND_CAUSE
("Failed to allocate a GPtrArray.");
goto error;
}
goto error;
}
@@
-195,7
+195,7
@@
struct bt_plugin *bt_plugin_create_empty(enum bt_plugin_type type)
g_ptr_array_new_with_free_func(
(GDestroyNotify) bt_object_put_ref);
if (!plugin->flt_comp_classes) {
g_ptr_array_new_with_free_func(
(GDestroyNotify) bt_object_put_ref);
if (!plugin->flt_comp_classes) {
- BT_L
OGE_STR
("Failed to allocate a GPtrArray.");
+ BT_L
IB_LOGE_APPEND_CAUSE
("Failed to allocate a GPtrArray.");
goto error;
}
goto error;
}
@@
-203,44
+203,44
@@
struct bt_plugin *bt_plugin_create_empty(enum bt_plugin_type type)
g_ptr_array_new_with_free_func(
(GDestroyNotify) bt_object_put_ref);
if (!plugin->sink_comp_classes) {
g_ptr_array_new_with_free_func(
(GDestroyNotify) bt_object_put_ref);
if (!plugin->sink_comp_classes) {
- BT_L
OGE_STR
("Failed to allocate a GPtrArray.");
+ BT_L
IB_LOGE_APPEND_CAUSE
("Failed to allocate a GPtrArray.");
goto error;
}
/* Create empty info */
plugin->info.name = g_string_new(NULL);
if (!plugin->info.name) {
goto error;
}
/* Create empty info */
plugin->info.name = g_string_new(NULL);
if (!plugin->info.name) {
- BT_L
OGE_STR
("Failed to allocate a GString.");
+ BT_L
IB_LOGE_APPEND_CAUSE
("Failed to allocate a GString.");
goto error;
}
plugin->info.path = g_string_new(NULL);
if (!plugin->info.path) {
goto error;
}
plugin->info.path = g_string_new(NULL);
if (!plugin->info.path) {
- BT_L
OGE_STR
("Failed to allocate a GString.");
+ BT_L
IB_LOGE_APPEND_CAUSE
("Failed to allocate a GString.");
goto error;
}
plugin->info.description = g_string_new(NULL);
if (!plugin->info.description) {
goto error;
}
plugin->info.description = g_string_new(NULL);
if (!plugin->info.description) {
- BT_L
OGE_STR
("Failed to allocate a GString.");
+ BT_L
IB_LOGE_APPEND_CAUSE
("Failed to allocate a GString.");
goto error;
}
plugin->info.author = g_string_new(NULL);
if (!plugin->info.author) {
goto error;
}
plugin->info.author = g_string_new(NULL);
if (!plugin->info.author) {
- BT_L
OGE_STR
("Failed to allocate a GString.");
+ BT_L
IB_LOGE_APPEND_CAUSE
("Failed to allocate a GString.");
goto error;
}
plugin->info.license = g_string_new(NULL);
if (!plugin->info.license) {
goto error;
}
plugin->info.license = g_string_new(NULL);
if (!plugin->info.license) {
- BT_L
OGE_STR
("Failed to allocate a GString.");
+ BT_L
IB_LOGE_APPEND_CAUSE
("Failed to allocate a GString.");
goto error;
}
plugin->info.version.extra = g_string_new(NULL);
if (!plugin->info.version.extra) {
goto error;
}
plugin->info.version.extra = g_string_new(NULL);
if (!plugin->info.version.extra) {
- BT_L
OGE_STR
("Failed to allocate a GString.");
+ BT_L
IB_LOGE_APPEND_CAUSE
("Failed to allocate a GString.");
goto error;
}
goto error;
}
@@
-405,7
+405,7
@@
struct bt_plugin_set *bt_plugin_set_create(void)
plugin_set->plugins = g_ptr_array_new_with_free_func(
(GDestroyNotify) bt_object_put_ref);
if (!plugin_set->plugins) {
plugin_set->plugins = g_ptr_array_new_with_free_func(
(GDestroyNotify) bt_object_put_ref);
if (!plugin_set->plugins) {
- BT_L
OGE_STR
("Failed to allocate a GPtrArray.");
+ BT_L
IB_LOGE_APPEND_CAUSE
("Failed to allocate a GPtrArray.");
BT_OBJECT_PUT_REF_AND_RESET(plugin_set);
goto end;
}
BT_OBJECT_PUT_REF_AND_RESET(plugin_set);
goto end;
}
This page took
0.026846 seconds
and
4
git commands to generate.