Skip to content

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 !

}

static
int lttng_match_enabler_exclusion(const char *desc_name,
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

frdeso added 2 commits April 5, 2017 21:04
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
@frdeso frdeso force-pushed the kernel_exclusion branch from b8d29c8 to 2c9e088 Compare April 6, 2017 01:08
@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