Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC] Kernel exclusion #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

frdeso
Copy link
Contributor

@frdeso frdeso commented Apr 4, 2017

No description provided.

Copy link
Contributor

@jdesfossez jdesfossez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few stylistic comments, but otherwise it looks good to me !

lttng-events.c Outdated
@@ -1163,6 +1163,48 @@ int lttng_match_enabler_name(const char *desc_name,
}

static
int lttng_match_enabler_exclusion(const char *desc_name,
struct lttng_enabler *enabler)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mix of tab and spaces

i = 0;
prev_is_space = 1;
while (i < len && str[i] != '\0') {

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unnecessary new line

count = 0;
i = 0;
prev_is_space = 1;
while (i < len && str[i] != '\0') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be clearer like that:
for (i = 0; i < len && str[i] != '\0'; i++)

break;
}

i++;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not needed if you use a for-loop instead of the while

* method and the string from the user
*/
ret = -EINVAL;
for (i = 0; i < ARRAY_SIZE(test_methods); i++) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 spaces before ARRAY_SIZE

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
@frdeso
Copy link
Contributor Author

frdeso commented Apr 6, 2017

Thank you for the feedback, I addressed the style issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants