Closed Kangie closed 8 months ago
Thanks for the patch. There are a lot of formatting changes in this patch which complicates seeing what actually changed. Please separate formatting from logical changes in future PR's to be a separate PR.
About the time format...that should be locale specific. "%x %T" might be better. Fputc is faster than fprintf since it doesn't parse a format string.
Still reviewing...
Thanks for the patch. There are a lot of formatting changes in this patch which complicates seeing what actually changed. Please separate formatting from logical changes in future PR's to be a separate PR.
Ack.
About the time format...that should be locale specific. "%x %T" might be better. Fputc is faster than fprintf since it doesn't parse a format string.
Updated to (I think) address this as desired.
I'm not sure if setlocale
should be called here or just done once when fapolicyd is initialised - it seems to work if I set it within int main(...){
, which I have staged but not yet committed. Would you prefer that we set LC_ALL
, instead?
Would you prefer that we set LC_ALL, instead?
Yes. We only use the time locale items but this is easier.
Actually, it's not necessary. Looks good to me. Thanks!
I think it might be better to set it once instead of every time we call msg
in the current PR, but my understanding of locale stuff is... developing, so I'll take your advice.
Move this to main instead?
Yes, put in main() somewhere near the beginning. Btw, we are close to doing a new release sometime before the holidays. Mentioning that in case you have anything else pending.
I have a WIP portage/ebuild backend that's pretty much ready to go pending some tests - I'll ping you in that PR and see about splitting it up into a few PRs to make the changes easier to review :)
This should be good to go provided that it all passes CI!
config.h always goes first. It can have defines that are needed to swing in and out other includes or even functions within an include. This is a generality of how configure.ac works.
Fixed!
or not, let me fix that vscode shrapnel, silly editor.
OK. Looks good to me. Thanks!
stderr
logging got colourful and timestamped: