-
Notifications
You must be signed in to change notification settings - Fork 69
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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) |
There was a problem hiding this comment.
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
tests/probes/lttng-test.c
Outdated
i = 0; | ||
prev_is_space = 1; | ||
while (i < len && str[i] != '\0') { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unnecessary new line
tests/probes/lttng-test.c
Outdated
count = 0; | ||
i = 0; | ||
prev_is_space = 1; | ||
while (i < len && str[i] != '\0') { |
There was a problem hiding this comment.
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++)
tests/probes/lttng-test.c
Outdated
break; | ||
} | ||
|
||
i++; |
There was a problem hiding this comment.
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
tests/probes/lttng-test.c
Outdated
* method and the string from the user | ||
*/ | ||
ret = -EINVAL; | ||
for (i = 0; i < ARRAY_SIZE(test_methods); i++) { |
There was a problem hiding this comment.
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 <[email protected]>
Signed-off-by: Francis Deslauriers <[email protected]>
Thank you for the feedback, I addressed the style issues. |
No description provided.