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

Tweak implementation of cl_arm_printf and introduce dedicated test fixture #717

Merged
merged 2 commits into from
Aug 31, 2024

Conversation

kpet
Copy link
Owner

@kpet kpet commented Aug 28, 2024

Change-Id: Ib27b60fb043e47227f519f34e04316d04f47b55d

…xture

Change-Id: Ib27b60fb043e47227f519f34e04316d04f47b55d
if (buff_size_prop_index != -1 && !config.printf_buffer_size.set) {
m_printf_buffersize = m_properties[buff_size_prop_index];
} else {
m_printf_buffersize = config.printf_buffer_size;
m_printf_buffersize = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it m_printf_buffersize really needs to be initialize with config.printf_buffer_size().

Copy link
Owner Author

Choose a reason for hiding this comment

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

I changed the getter so the buffer size is taken from the config if it wasn't provided via the extension. This works for test overrides. It adds a bit of complexity but I think it's worth it for the benefits on the test side.

Change-Id: Ic0a395c202c7f8e59249db8d443faf72a17399ff
@kpet kpet merged commit 7552c9e into main Aug 31, 2024
9 checks passed
@kpet kpet deleted the printf-tweaks branch August 31, 2024 08:53
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