-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
[usb_uart] Fix uint32_t format specifier warning in pl2303 - #18310
#18310[usb_uart] Fix uint32_t format specifier warning in pl2303#18310swoboda1337 merged 1 commit intodevesphome/esphome:devfrom usb-uart-pl2303-format-warningesphome/esphome:usb-uart-pl2303-format-warningCopy head branch name to clipboard
Conversation
|
To use the changes from this PR as an external component, add the following to your ESPHome configuration YAML file: external_components:
- source: github://pr#18310
components: [usb_uart]
refresh: 1h(Added by the PR bot) |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #18310 +/- ##
=======================================
Coverage 88.03% 88.03%
=======================================
Files 65 65
Lines 14921 14921
Branches 2244 2244
=======================================
Hits 13136 13136
Misses 1473 1473
Partials 312 312 🚀 New features to boost your workflow:
|
|
👋 Hi there! I've automatically requested reviews from codeowners based on the files changed in this PR. @clydebarrow - You've been requested to review this PR as codeowner(s) of 1 file(s) that were modified. Thanks for your time! 🙏 |
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.
Pull request overview
Restores the correct uint32_t format specifier in the usb_uart PL2303 driver debug log to eliminate -Wformat compiler warnings when printing baud rate values.
Changes:
- Updates the PL2303
SET_LINE_REQUESTdebug log to printbaudusingPRIu32instead of%u.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Memory Impact AnalysisComponents:
This analysis runs automatically when components change. Memory usage is measured from a representative test configuration. |
|
thanks |
What does this implement/fix?
Fixes a compiler warning in the PL2303 line coding debug log;
baudisuint32_tbut was printed with%u, so builds warn with-Wformat. This was fixed before in #17342 withPRIu32, then the log line was rewritten in #16990 and the specifier reverted, this restores it.Types of changes
Related issue or feature (if applicable):
Pull request in esphome.io with documentation (if applicable):
Pull request in developers.esphome.io with developer documentation (if applicable):
Test Environment
Example entry for
config.yaml:# Example config.yamlChecklist:
tests/folder).If user exposed functionality or configuration variables are added/changed: