projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02d62d6
)
tools lib traceevent: Make add_left() return pevent_errno
author
Namhyung Kim
<
[email protected]
>
Thu, 12 Dec 2013 07:36:10 +0000
(16:36 +0900)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Fri, 13 Dec 2013 13:30:22 +0000
(10:30 -0300)
So that it can propagate error properly.
Signed-off-by: Namhyung Kim <
[email protected]
>
Cc: Frederic Weisbecker <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Cc: Jiri Olsa <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Steven Rostedt <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
tools/lib/traceevent/parse-filter.c
patch
|
blob
|
history
diff --git
a/tools/lib/traceevent/parse-filter.c
b/tools/lib/traceevent/parse-filter.c
index c08ce594cabe6ab4b1da32ee003aaa01c776d984..774c3e4c1d9fe53bcd6405d039b4365644a40f1c 100644
(file)
--- a/
tools/lib/traceevent/parse-filter.c
+++ b/
tools/lib/traceevent/parse-filter.c
@@
-648,7
+648,7
@@
rotate_op_right(struct filter_arg *a, struct filter_arg *b)
return arg;
}
-static
int
add_left(struct filter_arg *op, struct filter_arg *arg)
+static
enum pevent_errno
add_left(struct filter_arg *op, struct filter_arg *arg)
{
switch (op->type) {
case FILTER_ARG_EXP:
@@
-667,11
+667,11
@@
static int add_left(struct filter_arg *op, struct filter_arg *arg)
/* left arg of compares must be a field */
if (arg->type != FILTER_ARG_FIELD &&
arg->type != FILTER_ARG_BOOLEAN)
- return
-1
;
+ return
PEVENT_ERRNO__INVALID_ARG_TYPE
;
op->num.left = arg;
break;
default:
- return
-1
;
+ return
PEVENT_ERRNO__INVALID_ARG_TYPE
;
}
return 0;
}