Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [ltt-dev] [UST PATCH] Fix missing parenthese around logic comparison
@ 2010-09-09 21:11 David Goulet
  2010-09-09 21:33 ` Mathieu Desnoyers
  0 siblings, 1 reply; 2+ messages in thread
From: David Goulet @ 2010-09-09 21:11 UTC (permalink / raw)


Error introduce in commit number 9dec086e052cf7f583a3afaa3aab48a6de8d38ac.

Signed-off-by: David Goulet <david.goulet at polymtl.ca>
---
 libust/tracepoint.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libust/tracepoint.c b/libust/tracepoint.c
index 8783b53..16b4819 100644
--- a/libust/tracepoint.c
+++ b/libust/tracepoint.c
@@ -154,8 +154,8 @@ tracepoint_entry_remove_probe(struct tracepoint_entry *entry, void *probe,
 	debug_print_probes(entry);
 	/* (N -> M), (N > 1, M >= 0) probes */
 	for (nr_probes = 0; old[nr_probes].func; nr_probes++) {
-		if ((!probe ||
-		     old[nr_probes].func == probe &&
+		if (!probe ||
+		     (old[nr_probes].func == probe &&
 		     old[nr_probes].data == data))
 			nr_del++;
 	}
-- 
1.7.2.3





^ permalink raw reply	[flat|nested] 2+ messages in thread

* [ltt-dev] [UST PATCH] Fix missing parenthese around logic comparison
  2010-09-09 21:11 [ltt-dev] [UST PATCH] Fix missing parenthese around logic comparison David Goulet
@ 2010-09-09 21:33 ` Mathieu Desnoyers
  0 siblings, 0 replies; 2+ messages in thread
From: Mathieu Desnoyers @ 2010-09-09 21:33 UTC (permalink / raw)


* David Goulet (david.goulet at polymtl.ca) wrote:
> Error introduce in commit number 9dec086e052cf7f583a3afaa3aab48a6de8d38ac.
> 
> Signed-off-by: David Goulet <david.goulet at polymtl.ca>

Acked-by: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>

> ---
>  libust/tracepoint.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/libust/tracepoint.c b/libust/tracepoint.c
> index 8783b53..16b4819 100644
> --- a/libust/tracepoint.c
> +++ b/libust/tracepoint.c
> @@ -154,8 +154,8 @@ tracepoint_entry_remove_probe(struct tracepoint_entry *entry, void *probe,
>  	debug_print_probes(entry);
>  	/* (N -> M), (N > 1, M >= 0) probes */
>  	for (nr_probes = 0; old[nr_probes].func; nr_probes++) {
> -		if ((!probe ||
> -		     old[nr_probes].func == probe &&
> +		if (!probe ||
> +		     (old[nr_probes].func == probe &&
>  		     old[nr_probes].data == data))
>  			nr_del++;
>  	}
> -- 
> 1.7.2.3
> 
> 
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
> 

-- 
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-09-09 21:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-09 21:11 [ltt-dev] [UST PATCH] Fix missing parenthese around logic comparison David Goulet
2010-09-09 21:33 ` Mathieu Desnoyers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox