projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Standardize log levels used by logging statements across the project
[babeltrace.git]
/
src
/
lib
/
graph
/
component.c
diff --git
a/src/lib/graph/component.c
b/src/lib/graph/component.c
index 5b202d7364c71c37b32e252e6619b589379ede79..6018a2782b891136ca68f695dd13d686ab29779e 100644
(file)
--- a/
src/lib/graph/component.c
+++ b/
src/lib/graph/component.c
@@
-100,7
+100,7
@@
void finalize_component(struct bt_component *comp)
}
if (method) {
}
if (method) {
- BT_LIB_LOG
D("Calling user's
finalization method: "
+ BT_LIB_LOG
I("Calling user's component
finalization method: "
"%![comp-]+c", comp);
method(comp);
}
"%![comp-]+c", comp);
method(comp);
}
@@
-128,7
+128,7
@@
void destroy_component(struct bt_object *obj)
*/
obj->ref_count++;
component = container_of(obj, struct bt_component, base);
*/
obj->ref_count++;
component = container_of(obj, struct bt_component, base);
- BT_LIB_LOG
D
("Destroying component: %![comp-]+c, %![graph-]+g",
+ BT_LIB_LOG
I
("Destroying component: %![comp-]+c, %![graph-]+g",
component, bt_component_borrow_graph(component));
/* Call destroy listeners in reverse registration order */
component, bt_component_borrow_graph(component));
/* Call destroy listeners in reverse registration order */
@@
-214,7
+214,7
@@
enum bt_self_component_status add_port(
// TODO: Validate that the name is not already used.
// TODO: Validate that the name is not already used.
- BT_LIB_LOG
D
("Adding port to component: %![comp-]+c, "
+ BT_LIB_LOG
I
("Adding port to component: %![comp-]+c, "
"port-type=%s, port-name=\"%s\"", component,
bt_port_type_string(port_type), name);
"port-type=%s, port-name=\"%s\"", component,
bt_port_type_string(port_type), name);
@@
-248,7
+248,7
@@
enum bt_self_component_status add_port(
}
}
}
}
- BT_LIB_LOG
D
("Created and added port to component: "
+ BT_LIB_LOG
I
("Created and added port to component: "
"%![comp-]+c, %![port-]+p", component, new_port);
*port = new_port;
"%![comp-]+c, %![port-]+p", component, new_port);
*port = new_port;
@@
-292,7
+292,7
@@
int bt_component_create(struct bt_component_class *component_class,
BT_ASSERT(component_class);
BT_ASSERT(name);
type = bt_component_class_get_type(component_class);
BT_ASSERT(component_class);
BT_ASSERT(name);
type = bt_component_class_get_type(component_class);
- BT_LIB_LOG
D
("Creating empty component from component class: %![cc-]+C, "
+ BT_LIB_LOG
I
("Creating empty component from component class: %![cc-]+C, "
"comp-name=\"%s\"", component_class, name);
component = component_create_funcs[type](component_class);
if (!component) {
"comp-name=\"%s\"", component_class, name);
component = component_create_funcs[type](component_class);
if (!component) {
@@
-336,7
+336,7
@@
int bt_component_create(struct bt_component_class *component_class,
goto end;
}
goto end;
}
- BT_LIB_LOG
D
("Created empty component from component class: "
+ BT_LIB_LOG
I
("Created empty component from component class: "
"%![cc-]+C, %![comp-]+c", component_class, component);
BT_OBJECT_MOVE_REF(*user_component, component);
"%![cc-]+C, %![comp-]+c", component_class, component);
BT_OBJECT_MOVE_REF(*user_component, component);
@@
-373,7
+373,7
@@
void bt_self_component_set_data(struct bt_self_component *self_comp,
BT_ASSERT_PRE_NON_NULL(component, "Component");
component->user_data = data;
BT_ASSERT_PRE_NON_NULL(component, "Component");
component->user_data = data;
- BT_LIB_LOG
V
("Set component's user data: %!+c", component);
+ BT_LIB_LOG
D
("Set component's user data: %!+c", component);
}
BT_HIDDEN
}
BT_HIDDEN
@@
-645,7
+645,7
@@
void bt_component_add_destroy_listener(struct bt_component *component,
listener.func = func;
listener.data = data;
g_array_append_val(component->destroy_listeners, listener);
listener.func = func;
listener.data = data;
g_array_append_val(component->destroy_listeners, listener);
- BT_LIB_LOG
V
("Added destroy listener: %![comp-]+c, "
+ BT_LIB_LOG
D
("Added destroy listener: %![comp-]+c, "
"func-addr=%p, data-addr=%p",
component, func, data);
}
"func-addr=%p, data-addr=%p",
component, func, data);
}
@@
-667,7
+667,7
@@
void bt_component_remove_destroy_listener(struct bt_component *component,
if (listener->func == func && listener->data == data) {
g_array_remove_index(component->destroy_listeners, i);
i--;
if (listener->func == func && listener->data == data) {
g_array_remove_index(component->destroy_listeners, i);
i--;
- BT_LIB_LOG
V
("Removed destroy listener: %![comp-]+c, "
+ BT_LIB_LOG
D
("Removed destroy listener: %![comp-]+c, "
"func-addr=%p, data-addr=%p",
component, func, data);
}
"func-addr=%p, data-addr=%p",
component, func, data);
}
This page took
0.025683 seconds
and
4
git commands to generate.