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

libkmod: Fix ELFDBG usage #148

Closed
wants to merge 2 commits into from
Closed

Conversation

stoeckmann
Copy link
Contributor

If debug is enabled through macro ENABLE_ELFDBG in libkmod-elf.c, compilation fails because two callers use wrong arguments.

While at it, fixed a typo.

Copy link
Collaborator

@evelikov evelikov left a comment

Choose a reason for hiding this comment

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

The changes are good AFAICT.

Thinking out loud: would it make sense to set the define in the CI and/or developer builds? Drop the macro or just leave it as-is, when it breaks it breaks.

@stoeckmann
Copy link
Contributor Author

I think that it would make sense to integrate the ELFDBG usage into DBG, so it also takes the log function as specified in context. Not sure why they should be handled so differently compared to other debug messages.

@evelikov
Copy link
Collaborator

My feeling was that ELFDBG was extra spam-y and may cause excessive output, fill up the logs and/or cause notable slowdowns.

Looking around distros some use --enable-debug (Fedora, Debian), others have the default (Arch and Suse) and some leave it to the user (Gentoo. Yocto).

The first parameter has to be a kmod_elf.

Signed-off-by: Tobias Stoeckmann <[email protected]>
Signed-off-by: Tobias Stoeckmann <[email protected]>
lucasdemarchi pushed a commit that referenced this pull request Sep 28, 2024
The first parameter has to be a kmod_elf.

Signed-off-by: Tobias Stoeckmann <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Link: #148
Signed-off-by: Lucas De Marchi <[email protected]>
lucasdemarchi pushed a commit that referenced this pull request Sep 28, 2024
Signed-off-by: Tobias Stoeckmann <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Link: #148
Signed-off-by: Lucas De Marchi <[email protected]>
@lucasdemarchi
Copy link
Contributor

Applied, thanks.

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

Successfully merging this pull request may close these issues.

3 participants