Skip to content

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
__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
searlmc1 pushed a commit to ROCm/llvm-project that referenced this pull request Sep 22, 2025
Remove extraneous argument from printf statement

---------

Co-authored-by: Joachim <[email protected]>
searlmc1 pushed a commit to ROCm/llvm-project that referenced this pull request Oct 9, 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