Skip to content

[OpenMP] Update printf stmt in kmp_settings.cpp #152800

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

Merged
merged 2 commits into from
Aug 14, 2025
Merged

Conversation

CatherineMoore
Copy link
Contributor

Remove extraneous argument from printf statement

Remove extraneous argument from printf statement
@llvmbot llvmbot added the openmp:libomp OpenMP host runtime label Aug 8, 2025
@@ -3280,7 +3280,7 @@ static void __kmp_stg_print_places(kmp_str_buf_t *buffer, char const *name,
const char *ct_name = __kmp_hw_get_core_type_keyword(ct);
__kmp_str_buf_print(buffer, ":%s", name, ct_name);
} else if (eff >= 0 && eff < KMP_HW_MAX_NUM_CORE_EFFS) {
__kmp_str_buf_print(buffer, ":eff%d", name, eff);
__kmp_str_buf_print(buffer, ":eff%d", eff);
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a little confusing to me, the usage above is the same where we have one printf argument and then the actual thing being printed. Is __kmp_str_buf_print different and takes the extra argument implicitly?

@jhuber6 jhuber6 enabled auto-merge (squash) August 14, 2025 19:51
@jhuber6 jhuber6 merged commit 5479b7e into llvm:main Aug 14, 2025
9 checks passed
@CatherineMoore CatherineMoore deleted the patch-3 branch August 14, 2025 20:17
mdenson pushed a commit to mdenson/llvm-project that referenced this pull request Aug 16, 2025
Remove extraneous argument from printf statement

---------

Co-authored-by: Joachim <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
openmp:libomp OpenMP host runtime
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants