* [lttng-dev] [lttng-tools PATCH] Move metset in channel_set_attr after the null check
@ 2012-06-06 18:54 Danny Serres
2012-06-06 19:40 ` Mathieu Desnoyers
2012-06-07 17:05 ` David Goulet
0 siblings, 2 replies; 4+ messages in thread
From: Danny Serres @ 2012-06-06 18:54 UTC (permalink / raw)
Signed-off-by: Danny Serres <serres at live.ca>
---
src/lib/lttng-ctl/lttng-ctl.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lib/lttng-ctl/lttng-ctl.c b/src/lib/lttng-ctl/lttng-ctl.c
index 36069ef..356fb34 100644
--- a/src/lib/lttng-ctl/lttng-ctl.c
+++ b/src/lib/lttng-ctl/lttng-ctl.c
@@ -885,13 +885,13 @@ int lttng_calibrate(struct lttng_handle *handle,
void lttng_channel_set_default_attr(struct lttng_domain *domain,
struct lttng_channel_attr *attr)
{
- memset(attr, 0, sizeof(struct lttng_channel_attr));
-
/* Safety check */
if (attr == NULL || domain == NULL) {
return;
}
+ memset(attr, 0, sizeof(struct lttng_channel_attr));
+
switch (domain->type) {
case LTTNG_DOMAIN_KERNEL:
attr->overwrite = DEFAULT_CHANNEL_OVERWRITE;
--
1.7.9.5
^ permalink raw reply [flat|nested] 4+ messages in thread
* [lttng-dev] [lttng-tools PATCH] Move metset in channel_set_attr after the null check
2012-06-06 18:54 [lttng-dev] [lttng-tools PATCH] Move metset in channel_set_attr after the null check Danny Serres
@ 2012-06-06 19:40 ` Mathieu Desnoyers
2012-06-07 17:05 ` David Goulet
1 sibling, 0 replies; 4+ messages in thread
From: Mathieu Desnoyers @ 2012-06-06 19:40 UTC (permalink / raw)
* Danny Serres (serres at live.ca) wrote:
> Signed-off-by: Danny Serres <serres at live.ca>
Hi Danny,
Your patch looks good ! Just one detail: I forgot to create a
efficios.com email for you. So I will create
"danny.serres at efficios.com", and you can sign-off your patch with this
email. It will be forwarded to your @live.ca email.
Thanks !
Mathieu
> ---
> src/lib/lttng-ctl/lttng-ctl.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/lib/lttng-ctl/lttng-ctl.c b/src/lib/lttng-ctl/lttng-ctl.c
> index 36069ef..356fb34 100644
> --- a/src/lib/lttng-ctl/lttng-ctl.c
> +++ b/src/lib/lttng-ctl/lttng-ctl.c
> @@ -885,13 +885,13 @@ int lttng_calibrate(struct lttng_handle *handle,
> void lttng_channel_set_default_attr(struct lttng_domain *domain,
> struct lttng_channel_attr *attr)
> {
> - memset(attr, 0, sizeof(struct lttng_channel_attr));
> -
> /* Safety check */
> if (attr == NULL || domain == NULL) {
> return;
> }
>
> + memset(attr, 0, sizeof(struct lttng_channel_attr));
> +
> switch (domain->type) {
> case LTTNG_DOMAIN_KERNEL:
> attr->overwrite = DEFAULT_CHANNEL_OVERWRITE;
> --
> 1.7.9.5
>
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
--
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* [lttng-dev] [lttng-tools PATCH] Move metset in channel_set_attr after the null check
2012-06-06 18:54 [lttng-dev] [lttng-tools PATCH] Move metset in channel_set_attr after the null check Danny Serres
2012-06-06 19:40 ` Mathieu Desnoyers
@ 2012-06-07 17:05 ` David Goulet
2012-06-07 17:43 ` Yannick Brosseau
1 sibling, 1 reply; 4+ messages in thread
From: David Goulet @ 2012-06-07 17:05 UTC (permalink / raw)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Danny,
I've merged your patch. Thanks! It's now upstream and in stable-2.0 :).
Just a note for the next time. This is a "Fix" patch so in the commit message,
start with "Fix:". I've changed it for you for this commit. Only commit with
Fix: are picked for the stable-2.0 branch.
commit eacaa7a62c3f2b9a019fd145d69c977fc53144bb
Author: Danny Serres <danny.serres at efficios.com>
Date: Wed Jun 6 14:54:30 2012 -0400
Fix: move memset in channel_set_attr after NULL check
Signed-off-by: Danny Serres <danny.serres at efficios.com>
Signed-off-by: David Goulet <dgoulet at efficios.com>
Cheers!
David
On 06/06/12 02:54 PM, Danny Serres wrote:
> Signed-off-by: Danny Serres <serres at live.ca> ---
> src/lib/lttng-ctl/lttng-ctl.c | 4 ++-- 1 file changed, 2 insertions(+),
> 2 deletions(-)
>
> diff --git a/src/lib/lttng-ctl/lttng-ctl.c b/src/lib/lttng-ctl/lttng-ctl.c
> index 36069ef..356fb34 100644 --- a/src/lib/lttng-ctl/lttng-ctl.c +++
> b/src/lib/lttng-ctl/lttng-ctl.c @@ -885,13 +885,13 @@ int
> lttng_calibrate(struct lttng_handle *handle, void
> lttng_channel_set_default_attr(struct lttng_domain *domain, struct
> lttng_channel_attr *attr) { - memset(attr, 0, sizeof(struct
> lttng_channel_attr)); - /* Safety check */ if (attr == NULL || domain ==
> NULL) { return; }
>
> + memset(attr, 0, sizeof(struct lttng_channel_attr)); + switch
> (domain->type) { case LTTNG_DOMAIN_KERNEL: attr->overwrite =
> DEFAULT_CHANNEL_OVERWRITE;
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iQEcBAEBAgAGBQJP0N9dAAoJEELoaioR9I02N3gH/3y9buoeohXbFW3YgF+ACTov
Tzon+vqwglgYDBd6xCtxzNUxvMR/UdTeuOr8V6RYTApHEXzgM3viLlpLFjB5YR01
qHBCl5mpp7hRHE/VAWIS4wJfg1lBeR+m+dAg+FB0SZKxm/3FiLzkltI3IQlmi6zH
qpNPXYfpEPm5Z6TmW0S+4P8qryVSkXO8OmM16NydXq3w6TOPmVkaqgYemNs2brAR
pmcw9ab9OMxqhZwL3ZG39SbMxstqhZy6qlMo6OM87uoVzVh52OUFspkemmk7O2vv
2/RZVp+5b0NgA5I1QwAXB3uU6AXv+Ld+dbSg9KosppvfFAQWieCMcaElnORt63M=
=LClK
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 4+ messages in thread
* [lttng-dev] [lttng-tools PATCH] Move metset in channel_set_attr after the null check
2012-06-07 17:05 ` David Goulet
@ 2012-06-07 17:43 ` Yannick Brosseau
0 siblings, 0 replies; 4+ messages in thread
From: Yannick Brosseau @ 2012-06-07 17:43 UTC (permalink / raw)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 2012-06-07 13:05, David Goulet wrote:
> Hi Danny,
>
> I've merged your patch. Thanks! It's now upstream and in stable-2.0 :).
>
> Just a note for the next time. This is a "Fix" patch so in the commit
message,
> start with "Fix:". I've changed it for you for this commit. Only commit
with
> Fix: are picked for the stable-2.0 branch.
That's something that need to be documented somewhere, even I was not
aware of it.
Yannick
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk/Q6CEACgkQFQrZ7GzHX2qMdACgp+BK+/BnN5huiBwPn53TYDlS
Ab8An0yG5OnKwl+Ugp/eKK2Ir3WnJoFu
=7F2t
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-06-07 17:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-06 18:54 [lttng-dev] [lttng-tools PATCH] Move metset in channel_set_attr after the null check Danny Serres
2012-06-06 19:40 ` Mathieu Desnoyers
2012-06-07 17:05 ` David Goulet
2012-06-07 17:43 ` Yannick Brosseau
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox