diff options
author | Jiri Olsa <jolsa@redhat.com> | 2012-09-06 11:46:56 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-09-07 20:50:11 -0400 |
commit | 0ca0c130419a4aa05d28fbecc5d360f051944251 (patch) | |
tree | a60a4bdd8e20a31a73511f7780c7ca4df94e70e3 /tools/perf/util/sort.c | |
parent | 863e451f69ddf255e877567e325298edd3b21519 (diff) |
perf tools: Replace sort's standalone field_sep with symbol_conf.field_sep
The repsep_snprintf function was still using standalone field_sep, which
not even set anymore.
Replacing it with 'symbol_conf.field_sep'.
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1346946426-13496-3-git-send-email-jolsa@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/sort.c')
-rw-r--r-- | tools/perf/util/sort.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/perf/util/sort.c b/tools/perf/util/sort.c index 0f5a0a496bc4..7a2fbd8855b7 100644 --- a/tools/perf/util/sort.c +++ b/tools/perf/util/sort.c | |||
@@ -12,8 +12,6 @@ int sort__branch_mode = -1; /* -1 = means not set */ | |||
12 | 12 | ||
13 | enum sort_type sort__first_dimension; | 13 | enum sort_type sort__first_dimension; |
14 | 14 | ||
15 | char * field_sep; | ||
16 | |||
17 | LIST_HEAD(hist_entry__sort_list); | 15 | LIST_HEAD(hist_entry__sort_list); |
18 | 16 | ||
19 | static int repsep_snprintf(char *bf, size_t size, const char *fmt, ...) | 17 | static int repsep_snprintf(char *bf, size_t size, const char *fmt, ...) |
@@ -23,11 +21,11 @@ static int repsep_snprintf(char *bf, size_t size, const char *fmt, ...) | |||
23 | 21 | ||
24 | va_start(ap, fmt); | 22 | va_start(ap, fmt); |
25 | n = vsnprintf(bf, size, fmt, ap); | 23 | n = vsnprintf(bf, size, fmt, ap); |
26 | if (field_sep && n > 0) { | 24 | if (symbol_conf.field_sep && n > 0) { |
27 | char *sep = bf; | 25 | char *sep = bf; |
28 | 26 | ||
29 | while (1) { | 27 | while (1) { |
30 | sep = strchr(sep, *field_sep); | 28 | sep = strchr(sep, *symbol_conf.field_sep); |
31 | if (sep == NULL) | 29 | if (sep == NULL) |
32 | break; | 30 | break; |
33 | *sep = '.'; | 31 | *sep = '.'; |