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

system/composite_main.c: Hide fprintf behind macro to handle FILE_STR… #1693

Merged
merged 1 commit into from
Apr 3, 2023

Conversation

pussuw
Copy link
Contributor

@pussuw pussuw commented Mar 30, 2023

…EAMS=n

Summary

CONFIG_FILE_STREAMS now defaults to 'n' when DEFAULT_SMALL is enabled. This is a good change, but this source file fails to compile when file streams are disabled.

Fix this by using fprintf / dprintf depending on the config value.

Impact

Fixes build error when DEFAULT_SMALL used

Testing

Out-of-tree target with:
CONFIG_DEFAULT_SMALL=y
...
CONFIG_USBDEV=y
CONFIG_USBDEV_COMPOSITE=y

CONFIG_FILE_STREAMS now defaults to 'n' when DEFAULT_SMALL is enabled. This
is a good change, but this source file fails to compile when file streams
are disabled.

Fix this by using dprintf.
@pussuw pussuw force-pushed the composite_main_fprintf_fix branch from ea809cf to bd5e68e Compare March 31, 2023 10:14
@pkarashchenko pkarashchenko merged commit c694d8d into apache:master Apr 3, 2023
@pussuw pussuw deleted the composite_main_fprintf_fix branch August 28, 2023 15:58
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