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

Rev2 #31

Closed
wants to merge 2 commits into from
Closed

Rev2 #31

wants to merge 2 commits into from

Conversation

anjalidk
Copy link
Contributor

STAT code fixes.

Code for /proc/stat & test infra.

Signed-off-by: Anjali Kulkarni <[email protected]>
Signed-off-by: Anjali Kulkarni <[email protected]>
return -1;
}
for (int i = 0; i < cpu_num; i++) {
sprintf(buf, "cpu%d", i);
Copy link
Member

Choose a reason for hiding this comment

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

I still prefer this be an snprintf. This is outside the 3 lines of usual patch context of the buf[36] definition, so a future patch could cause trouble that we wouldn't catch.

@anjalidk anjalidk closed this Oct 23, 2023
@anjalidk
Copy link
Contributor Author

Submitted rev3 instead.

@anjalidk anjalidk deleted the rev2 branch October 23, 2023 21:12
@anjalidk
Copy link
Contributor Author

anjalidk commented Oct 23, 2023 via email

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

Successfully merging this pull request may close these issues.

2 participants