Skip to content

Remove "wprintf" from PAL - #77852

Merged
AaronRobinsonMSFT merged 4 commits into
dotnet:mainfrom
AaronRobinsonMSFT:remove_wprint_from_pal
Nov 4, 2022
Merged

Remove "wprintf" from PAL#77852
AaronRobinsonMSFT merged 4 commits into
dotnet:mainfrom
AaronRobinsonMSFT:remove_wprint_from_pal

Conversation

@AaronRobinsonMSFT

Copy link
Copy Markdown
Member

The last usage was in FormatMessageW, which
only used wprintf syntax for messages that used
embedded printf format between two "!". We do
not use this feature in any of our messages so
this code path is technically unused.

Remove _snwprintf_s from PAL

Remove _vsnwprintf_s from PAL

_woutput_s was not removed because it is intertwined
with the implementation for printf. The linker will just
prune the implementation anyways.

Remove all wprintf testing from PAL

The last usage was in FormatMessageW, which
only used wprintf syntax for messages that used
embeded printf format between two "!". We do
not use this feature in any of our messages so
this code path is technically unused.
_woutput_s was not removed because it is intertwined
with the implementation for printf. The linker will just
prune the implementation anyways.
Remove all wprintf testing from PAL
@AaronRobinsonMSFTAaronRobinsonMSFT added the area-PAL-coreclr only for closed issues label Nov 3, 2022
@AaronRobinsonMSFTAaronRobinsonMSFT added this to the 8.0.0 milestone Nov 3, 2022
@AaronRobinsonMSFTAaronRobinsonMSFT changed the title Remove wprint from palRemove "wprintf" from palNov 3, 2022
@AaronRobinsonMSFT

Copy link
Copy Markdown
MemberAuthor

am11
am11 approved these changes Nov 3, 2022

@am11am11 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.

Looks great! 👍

Comment threadsrc/coreclr/pal/tests/palsuite/CMakeLists.txt
Comment threadsrc/coreclr/pal/src/misc/fmtmessage.cpp
FormatMessageW errors if embedded formating is used
Update PAL tests for FormatMessageW
@AaronRobinsonMSFTAaronRobinsonMSFT changed the title Remove "wprintf" from palRemove "wprintf" from PALNov 3, 2022

@janvorlijanvorli 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, thank you!

@AaronRobinsonMSFT

Copy link
Copy Markdown
MemberAuthor

Issues are known and properly tagged above.

@AaronRobinsonMSFT
AaronRobinsonMSFT merged commit 8036885 into dotnet:mainNov 4, 2022
@AaronRobinsonMSFT
AaronRobinsonMSFT deleted the remove_wprint_from_pal branch November 4, 2022 02:25
radical added a commit to radical/runtime that referenced this pull request Nov 4, 2022
This completely broke `dotnet-runtime-perf` pipeline for wasm runs.
This reverts commit 8036885.
Issue: dotnet#77883
@ghostghost locked as resolved and limited conversation to collaborators Dec 4, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-PAL-coreclronly for closed issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@AaronRobinsonMSFT@am11@janvorli@davidwrighton