-
Notifications
You must be signed in to change notification settings - Fork 192
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
Use fmtlib for Output logger #2181
Conversation
So the minimal supported version should be 5.3. Is for Debian in "Debian Stable Backports". Other part are the console ports. I wonder how much frustration compiling this with newlib will give >.> |
4cc2cbd
to
b14467d
Compare
Library building looks good. Havn't tested Player linking yet. You also have to add "-lfmt" to all our Makefiles. (fortunately this will solve when the CMake migration is done...) |
I tested and this compiles and links successfully with
|
cd43630
to
f64161d
Compare
Build fails with
|
Thanks for catching that, fixed the test. |
Could youdo a full text search for Output::Post ? Also see a failure in the vita build. |
Hmm I did do a text search, but must have missed that one. Anyway, updated it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything compiled succesfully.
Needs toolchain recompile before merge.
Ok I've added commits to convert all log messages over. I also cleaned up and tested I did this by grepping for all files with I didn't want to do something fully systematic like This is tricky because any mistake here will unfortunately show up as a runtime exception (or just an assert() if exceptions are disabled on the platform). So let's review the diffs carefully. |
Self reviewed this, fixed a few minor things. From my perspective this is ready to go. |
Does fmtlib support %s and %d in case we miss something? |
It'll just print the %s and %d literally and ignore the arguments. I did a |
Jenkins: Test this please <3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Note that many new commits - At least 10 - were added since the last review)
Addressed review comments |
Rebased, and fixed a few in input from the rebase. Did another set of greps to verify no stray |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hope this works correctly with our newlib plaforms.
Fix: #2098
In order to avoid rebase hell, I will add commits to change all of our log statements only after this PR gets approved.
Looks like linux packaging for this library is not great. In Ubuntu eoan for example it only has ancient version 5.1.2 which doesn't have pkg-config and breaks on trying to print
char32_t
.Focal has 6.1.2 which should be fine.
vcpkg is up to date with latest 6.2.0