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

debug: Prepend log macros with UVG_ #157

Merged
merged 0 commits into from
Aug 17, 2022

Conversation

devenvexe
Copy link
Contributor

Prepend log macros with UVG_ to avoid conflicts with codebase that define their own LOG_* macros

@devenvexe devenvexe marked this pull request as draft July 31, 2022 22:17
@devenvexe devenvexe marked this pull request as ready for review July 31, 2022 22:18
@devenvexe devenvexe closed this Jul 31, 2022
@devenvexe devenvexe reopened this Jul 31, 2022
@devenvexe
Copy link
Contributor Author

Any chance to get a review on getting this merged? Happy to help how I can.

#define UVG_LOG_ERROR(...) uvgrtp_debug(LOG_LEVEL_ERROR, __func__, __VA_ARGS__)
#define UVG_LOG_WARN(...) uvgrtp_debug(LOG_LEVEL_WARN, __func__, __VA_ARGS__)
#define UVG_LOG_INFO(...) uvgrtp_debug(LOG_LEVEL_INFO, __func__, __VA_ARGS__)
#define UVG_LOG_DEBUG(...) uvgrtp_debug(LOG_LEVEL_DEBUG, __func__, __VA_ARGS__)
Copy link
Member

Choose a reason for hiding this comment

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

Both UVG_LOG_DEBUG should be modified into the LOG_DEBUG on line 66 and 68. This way, debug prints are disabled in release mode.

@jrsnen
Copy link
Member

jrsnen commented Aug 15, 2022

Hi and thank you for this PR. I found a small error in debug.hh, but otherwise looks good. I will probably end up moving debug.hh away from include soon anyway (internal debug prints don't need to be accessible to users of uvgRTP), but this change makes sense anyway.

@jrsnen
Copy link
Member

jrsnen commented Aug 15, 2022

If you can fix the error, I will merge this. If possible, modify the existing commit, but I will also accept one new commit to fix this.

@devenvexe devenvexe merged commit 6620c5a into ultravideo:master Aug 17, 2022
@devenvexe
Copy link
Contributor Author

Thank you I will address

@devenvexe devenvexe deleted the mtd/prefix-debug-macros branch August 17, 2022 04:16
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.

2 participants