projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: make values API const-correct
[babeltrace.git]
/
plugins
/
text
/
dmesg
/
dmesg.c
diff --git
a/plugins/text/dmesg/dmesg.c
b/plugins/text/dmesg/dmesg.c
index ef3d723ee9dda364e0ee551dea7e65fd0dcaaf68..8a9d4fffd6535179060300967ced056e42a76877 100644
(file)
--- a/
plugins/text/dmesg/dmesg.c
+++ b/
plugins/text/dmesg/dmesg.c
@@
-212,14
+212,15
@@
end:
}
static
}
static
-int handle_params(struct dmesg_component *dmesg_comp, struct bt_value *params)
+int handle_params(struct dmesg_component *dmesg_comp,
+ const struct bt_value *params)
{
{
- struct bt_value *no_timestamp = NULL;
- struct bt_value *path = NULL;
+
const
struct bt_value *no_timestamp = NULL;
+
const
struct bt_value *path = NULL;
const char *path_str;
int ret = 0;
const char *path_str;
int ret = 0;
- no_timestamp = bt_value_map_borrow_entry_value(params,
+ no_timestamp = bt_value_map_borrow_entry_value
_const
(params,
"no-extract-timestamp");
if (no_timestamp) {
if (!bt_value_is_bool(no_timestamp)) {
"no-extract-timestamp");
if (no_timestamp) {
if (!bt_value_is_bool(no_timestamp)) {
@@
-234,7
+235,7
@@
int handle_params(struct dmesg_component *dmesg_comp, struct bt_value *params)
bt_value_bool_get(no_timestamp);
}
bt_value_bool_get(no_timestamp);
}
- path = bt_value_map_borrow_entry_value(params, "path");
+ path = bt_value_map_borrow_entry_value
_const
(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.");
This page took
0.023318 seconds
and
4
git commands to generate.