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

fix: Certain Profiler log messages did not print correctly when running under Linux. (#2200) #2209

Merged
merged 2 commits into from
Jan 25, 2024

Conversation

tippmar-nr
Copy link
Member

@tippmar-nr tippmar-nr commented Jan 25, 2024

This PR fixes an issue with certain Profiler log messages that used the _X() macro to convert a string. On Linux platforms, those messages would print out as an address (like 0x7fc4e6afc77c) rather than the string content. Modifying the log messages to use the L prefix instead results in the messages printing correctly as expected.

There may be a deeper issue, but there were only a handful of log messages using _X() and I've changed the ones that might get emitted on Linux to L instead.

I also confirmed that this isn't an issue related to an old .NET Core version or an old Linux distro -- the test app I used to reproduce this issue behaved the same when built on the latest .NET SDK and Runtime.

Fixes #2200

Co-authored-by: tippmar-nr <tippmar-nr@users.noreply.github.com>
@tippmar-nr tippmar-nr merged commit 1b75bf9 into main Jan 25, 2024
78 checks passed
@tippmar-nr tippmar-nr deleted the fix/profiler-log-messages branch January 25, 2024 21:22
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.

Add an error message for unsupported .NET versions in Linux
2 participants