projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10ba222
)
[profiler] Fix 'no' argument parsing.
author
Alex Rønne Petersen
<alexrp@xamarin.com>
Tue, 20 Jun 2017 03:45:41 +0000
(
05:45
+0200)
committer
Alex Rønne Petersen
<alexrp@xamarin.com>
Tue, 20 Jun 2017 03:49:58 +0000
(
05:49
+0200)
mono/profiler/log-args.c
patch
|
blob
|
history
diff --git
a/mono/profiler/log-args.c
b/mono/profiler/log-args.c
index fbbafd4dbce8f8e85994d5f43cfdb033d0ded64e..53cf67ba6e72228c9a01ccf69e1b62609053732c 100644
(file)
--- a/
mono/profiler/log-args.c
+++ b/
mono/profiler/log-args.c
@@
-141,8
+141,9
@@
parse_arg (const char *arg, ProfilerConfig *config)
if (!strcmp (arg, event_list [i].event_name)) {
config->enable_mask |= event_list [i].mask;
break;
- } else if (
arg [0] == 'n' && arg [1] == 'o'
&& !strcmp (arg + 2, event_list [i].event_name)) {
+ } else if (
!strncmp (arg, "no", 2)
&& !strcmp (arg + 2, event_list [i].event_name)) {
config->disable_mask |= event_list [i].mask;
+ break;
}
}
if (i == G_N_ELEMENTS (event_list)) {
@@
-405,4
+406,4
@@
mono_cpu_count (void)
}
return 1;
-}
\ No newline at end of file
+}