Skip to content

Change the log level of stub functions#1795

Merged
derselbst merged 1 commit into
FluidSynth:release/2.5from
white-axe:stub
Jun 9, 2026
Merged

Change the log level of stub functions#1795
derselbst merged 1 commit into
FluidSynth:release/2.5from
white-axe:stub

Conversation

@white-axe

Copy link
Copy Markdown
Contributor

We're having problems at mkxp-z/mkxp-z#321 with the "function is a stub" log messages sometimes emitted by FluidSynth when configured with -Dosal=cpp11 or -Dosal=embedded being annoying to end users. Given that they don't indicate an error that occurred within FluidSynth, maybe they shouldn't be error messages?

@derselbst

derselbst commented Jun 8, 2026

Copy link
Copy Markdown
Member

That depends on how you interpret a "STUB". I could argue, that those STUBs are to be implemented downstream, rather than being used as is, which would be an error. Error, because fluidsynth is trying to use functionality, which your OSAL doesn't provide.

Compromise: conditional log level depending on whether it's a debug or release build. I.e. if NDEBUG is defined (=release build), use FLUID_DBG, otherwise keep using FLUID_ERR.

@derselbst

Copy link
Copy Markdown
Member

Oh, and pls. rebase your changes against release/2.5 branch, if you want to see this in 2.5.5

@white-axe white-axe changed the base branch from master to release/2.5 June 8, 2026 22:55
@white-axe

Copy link
Copy Markdown
Contributor Author

Alright. That seems fair.

@derselbst derselbst left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks!

@derselbst derselbst merged commit b95d253 into FluidSynth:release/2.5 Jun 9, 2026
65 of 76 checks passed
@white-axe white-axe deleted the stub branch June 9, 2026 16: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