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

Use QEMU_DEBUG in tkey-libs #40

Merged
merged 1 commit into from
Mar 6, 2024
Merged

Use QEMU_DEBUG in tkey-libs #40

merged 1 commit into from
Mar 6, 2024

Conversation

mchack-work
Copy link
Member

-D QEMU_DEBUG was mistakenly removed. It is needed to build the actual qemu_() functions in libcommon. tkey-libs's own use of the qemu_() functions are isolated to assert() and shouldn't increase code size.

When a device app don't want to use the qemu_*() functions simply not defining QEMU_DEBUG means the function declarations in qemu_debug.h are replaced by nothing by the pre-processor.

-D QEMU_DEBUG was mistakenly removed. It is needed to build the actual
qemu_*() functions in libcommon. tkey-libs's own use of the qemu_*()
functions are isolated to assert() and shouldn't increase code size.

When a device app don't want to use the qemu_*() functions simply not
defining QEMU_DEBUG means the function declarations in qemu_debug.h
are replaced by nothing by the pre-processor.
Copy link
Member

@dehanj dehanj left a comment

Choose a reason for hiding this comment

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

LGTM.
Verified that I do get debug messages when defining QEMU_DEBUG in an device application.

@mchack-work mchack-work merged commit 98fff50 into main Mar 6, 2024
1 check passed
@mchack-work mchack-work deleted the qemu_debug branch March 6, 2024 14:54
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