projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove legacy printf_verbose()/printf_debug() and others
[babeltrace.git]
/
plugins
/
utils
/
trimmer
/
trimmer.c
diff --git
a/plugins/utils/trimmer/trimmer.c
b/plugins/utils/trimmer/trimmer.c
index 2a8bd5e0b83c5fb4ae8d21977134a4cd432c536e..d3460fbb83e299380557e88530d5ea7e6b32f2bc 100644
(file)
--- a/
plugins/utils/trimmer/trimmer.c
+++ b/
plugins/utils/trimmer/trimmer.c
@@
-26,6
+26,9
@@
* SOFTWARE.
*/
* SOFTWARE.
*/
+#define BT_LOG_TAG "PLUGIN-UTILS-TRIMMER-FLT"
+#include "logging.h"
+
#include <babeltrace/compat/utc-internal.h>
#include <babeltrace/plugin/plugin-dev.h>
#include <babeltrace/graph/component.h>
#include <babeltrace/compat/utc-internal.h>
#include <babeltrace/plugin/plugin-dev.h>
#include <babeltrace/graph/component.h>
@@
-305,7
+308,7
@@
enum bt_component_status init_from_params(struct trimmer *trimmer,
value_ret = bt_value_bool_get(value, &gmt);
if (value_ret) {
ret = BT_COMPONENT_STATUS_INVALID;
value_ret = bt_value_bool_get(value, &gmt);
if (value_ret) {
ret = BT_COMPONENT_STATUS_INVALID;
-
printf_error
("Failed to retrieve clock-gmt value. Expecting a boolean");
+
BT_LOGE_STR
("Failed to retrieve clock-gmt value. Expecting a boolean");
}
}
bt_put(value);
}
}
bt_put(value);
@@
-322,7
+325,7
@@
enum bt_component_status init_from_params(struct trimmer *trimmer,
if (value_ret || timestamp_from_arg(str,
trimmer, &trimmer->begin, gmt)) {
ret = BT_COMPONENT_STATUS_INVALID;
if (value_ret || timestamp_from_arg(str,
trimmer, &trimmer->begin, gmt)) {
ret = BT_COMPONENT_STATUS_INVALID;
-
printf_error
("Failed to retrieve begin value. Expecting a timestamp string");
+
BT_LOGE_STR
("Failed to retrieve begin value. Expecting a timestamp string");
}
}
bt_put(value);
}
}
bt_put(value);
@@
-339,14
+342,14
@@
enum bt_component_status init_from_params(struct trimmer *trimmer,
if (value_ret || timestamp_from_arg(str,
trimmer, &trimmer->end, gmt)) {
ret = BT_COMPONENT_STATUS_INVALID;
if (value_ret || timestamp_from_arg(str,
trimmer, &trimmer->end, gmt)) {
ret = BT_COMPONENT_STATUS_INVALID;
-
printf_error
("Failed to retrieve end value. Expecting a timestamp string");
+
BT_LOGE_STR
("Failed to retrieve end value. Expecting a timestamp string");
}
}
bt_put(value);
end:
if (trimmer->begin.set && trimmer->end.set) {
if (trimmer->begin.value > trimmer->end.value) {
}
}
bt_put(value);
end:
if (trimmer->begin.set && trimmer->end.set) {
if (trimmer->begin.value > trimmer->end.value) {
-
printf_error
("Unexpected: time range begin value is above end value");
+
BT_LOGE_STR
("Unexpected: time range begin value is above end value");
ret = BT_COMPONENT_STATUS_INVALID;
}
}
ret = BT_COMPONENT_STATUS_INVALID;
}
}
This page took
0.030336 seconds
and
4
git commands to generate.