-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Replace usages of emberPrintln with ChipLogProgress calls #27035
Replace usages of emberPrintln with ChipLogProgress calls #27035
Conversation
``` rg emberAfPrintln src examples --files-with-matches | xargs sd 'emberAfPrintln\(EMBER_AF_PRINT_DEBUG, ("[^)]*\);)' 'ChipLogDetail($1' ```
PR #27035: Size comparison from d7dbc7a to c1fef18 Increases above 0.2%:
Increases (1 build for cc32xx)
Decreases (1 build for cc32xx)
Full report (1 build for cc32xx)
|
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.
Nit: Do we want to "promote" some of them to ChipLogError
I believe we may, however maybe as a followup by people with domain knowledge. |
PR #27035: Size comparison from 0d6dfde to d859985 Increases above 0.2%:
Increases (27 builds for bl602, bl702, cc32xx, cyw30739, esp32, linux, mbed, nrfconnect, psoc6)
Decreases (33 builds for bl702, cc32xx, cyw30739, efr32, esp32, k32w, linux, nrfconnect, psoc6, qpg, telink)
Full report (58 builds for bl602, bl702, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
|
PR #27035: Size comparison from 0d6dfde to 30f007d Increases above 0.2%:
Increases (21 builds for cc32xx, cyw30739, esp32, linux, mbed, nrfconnect, psoc6)
Decreases (43 builds for bl602, bl702, cc32xx, efr32, esp32, k32w, linux, nrfconnect, psoc6, qpg, telink)
Full report (58 builds for bl602, bl702, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
|
CHIP debug logs should use ChipLogProgress/Detail/Error rather than ember macros. Only few usages of ember macros
still existed.
Changes:
previous per-cluster code seems to have been guarded by
EMBER_AF_PRINT_ENABLE
which was not set, hence the increase in size of the lock example. However it seemed odd to actually disable printouts of several error messages because of this, so for now I will assume that the print disabling was an oversight (especially for errors). We can iterate and convert things to LogDetail or guard logs with additional defines as a followup.