diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-04-02 11:30:57 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-04-02 15:28:35 -0400 |
commit | 2aefa4f733f2c5ce51dd2316ffecb258463fde71 (patch) | |
tree | b1c0ef5fb2541619630c00d6596a003a11e79512 /tools/perf/util | |
parent | ad5b217b152d99ca3922153500c619d9758dd87a (diff) |
perf tools: sort_dimension__add shouldn't die
Propagate error instead.
LKML-Reference: <new-submission>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util')
-rw-r--r-- | tools/perf/util/sort.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/perf/util/sort.c b/tools/perf/util/sort.c index 31329a1cd324..9d24d4b2c8fb 100644 --- a/tools/perf/util/sort.c +++ b/tools/perf/util/sort.c | |||
@@ -264,9 +264,8 @@ int sort_dimension__add(const char *tok) | |||
264 | char err[BUFSIZ]; | 264 | char err[BUFSIZ]; |
265 | 265 | ||
266 | regerror(ret, &parent_regex, err, sizeof(err)); | 266 | regerror(ret, &parent_regex, err, sizeof(err)); |
267 | fprintf(stderr, "Invalid regex: %s\n%s", | 267 | pr_err("Invalid regex: %s\n%s", parent_pattern, err); |
268 | parent_pattern, err); | 268 | return -EINVAL; |
269 | exit(-1); | ||
270 | } | 269 | } |
271 | sort__has_parent = 1; | 270 | sort__has_parent = 1; |
272 | } | 271 | } |