lmsensors component: Replace fprintf with SUBDBG#389
Conversation
|
I am testing this pull request. |
|
On Gilgamesh using GCC 12.2.0, I get the following compiler warnings: I believe this can remedied by removing the |
5d538f5 to
17e31b4
Compare
@dbarry9 Thank you for catching that, yes that is correct. I have updated the PR and tested on Gilgamesh myself with GCC 12.2.0 and do not notice the compiler warning now. Please let me know if it is the same for yourself. |
|
@Treece-Burgess That resolved the compiler warning on my end, too. I have now tested this pull request on Gilgamesh (AMD Zen3 + NVIDIA H100 + AMD MI250X) and Frontier (AMD Zen3 + MI250X). The utilities work as expected, and the lmsensors |
I will take a look at the |
17e31b4 to
c7f4503
Compare
For documentation purposes, I will be creating a separate PR to handle the error of the |
Pull Request Description
Currently in the
lmsensorscomponent there are twofprintfcalls. This can lead to error messages printing even when you do not setPAPI_DEBUG. As an example, on an AMD Epyc 7413 withlmsensors3.4 the following will occur:This PR resolves this issue by replacing the
fprintf's withSUBDBG's (Tested on an AMD Epyc 7413 withlmsensors3.4).Author Checklist
Why this PR exists. Reference all relevant information, including background, issues, test failures, etc
Commits are self contained and only do one thing
Commits have a header of the form:
module: short descriptionCommits have a body (whenever relevant) containing a detailed description of the addressed problem and its solution
The PR needs to pass all the tests