projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Values API: standardize function names
[babeltrace.git]
/
plugins
/
text
/
dmesg
/
dmesg.c
diff --git
a/plugins/text/dmesg/dmesg.c
b/plugins/text/dmesg/dmesg.c
index f54af1c10a5677e424382e49fd869f39fbc1ea89..90527c9d7b9d51b58d804cbb2fc0e6200b36df0f 100644
(file)
--- a/
plugins/text/dmesg/dmesg.c
+++ b/
plugins/text/dmesg/dmesg.c
@@
-210,13
+210,13
@@
end:
static
int handle_params(struct dmesg_component *dmesg_comp, struct bt_value *params)
{
static
int handle_params(struct dmesg_component *dmesg_comp, struct bt_value *params)
{
- struct bt_value *read_from_stdin = NULL;
struct bt_value *no_timestamp = NULL;
struct bt_value *path = NULL;
const char *path_str;
int ret = 0;
struct bt_value *no_timestamp = NULL;
struct bt_value *path = NULL;
const char *path_str;
int ret = 0;
- no_timestamp = bt_value_map_get(params, "no-extract-timestamp");
+ no_timestamp = bt_value_map_borrow_entry_value(params,
+ "no-extract-timestamp");
if (no_timestamp) {
if (!bt_value_is_bool(no_timestamp)) {
BT_LOGE("Expecting a boolean value for the `no-extract-timestamp` parameter: "
if (no_timestamp) {
if (!bt_value_is_bool(no_timestamp)) {
BT_LOGE("Expecting a boolean value for the `no-extract-timestamp` parameter: "
@@
-231,7
+231,7
@@
int handle_params(struct dmesg_component *dmesg_comp, struct bt_value *params)
BT_ASSERT(ret == 0);
}
BT_ASSERT(ret == 0);
}
- path = bt_value_map_
get
(params, "path");
+ path = bt_value_map_
borrow_entry_value
(params, "path");
if (path) {
if (dmesg_comp->params.read_from_stdin) {
BT_LOGE_STR("Cannot specify both `read-from-stdin` and `path` parameters.");
if (path) {
if (dmesg_comp->params.read_from_stdin) {
BT_LOGE_STR("Cannot specify both `read-from-stdin` and `path` parameters.");
@@
-259,9
+259,6
@@
error:
ret = -1;
end:
ret = -1;
end:
- bt_put(read_from_stdin);
- bt_put(path);
- bt_put(no_timestamp);
return ret;
}
return ret;
}
This page took
0.02484 seconds
and
4
git commands to generate.