samples: hello_arduino: Correct printk format specifier#145
samples: hello_arduino: Correct printk format specifier#145DhruvaG2000 merged 1 commit intozephyrproject-rtos:nextfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This pull request combines two distinct types of changes: a format specifier correction in the hello_arduino sample and infrastructure updates to support board revision-specific overlay files across all samples. The PR title and description only mention the format specifier fix, but the actual changes are much more extensive.
Changes:
- Fixed printk format specifiers from %d to %zd for size_t variables in hello_arduino sample
- Added conditional logic to all sample CMakeLists.txt files to support board-revision-specific overlay files
- Modified main CMakeLists.txt to change variant directory detection logic from BOARD with NORMALIZED_BOARD_QUALIFIERS to BOARD and NORMALIZED_BOARD_TARGET with double-underscore replacement
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 13 comments.
Show a summary per file
| File | Description |
|---|---|
| samples/hello_arduino/src/app.cpp | Corrected printk format specifiers from %d to %zd for size_t variables |
| samples/hello_arduino/CMakeLists.txt | Added conditional logic to select board-revision-specific overlay files |
| samples/analog_input/CMakeLists.txt | Added conditional logic to select board-revision-specific overlay files |
| samples/attach_interrupt/CMakeLists.txt | Added conditional logic to select board-revision-specific overlay files |
| samples/blinky_arduino/CMakeLists.txt | Added conditional logic to select board-revision-specific overlay files |
| samples/button_press_led/CMakeLists.txt | Added conditional logic to select board-revision-specific overlay files |
| samples/fade/CMakeLists.txt | Added conditional logic to select board-revision-specific overlay files |
| samples/i2cdemo/CMakeLists.txt | Added conditional logic to select board-revision-specific overlay files |
| samples/serial_event/CMakeLists.txt | Added conditional logic to select board-revision-specific overlay files |
| samples/spi_controller/CMakeLists.txt | Added conditional logic to select board-revision-specific overlay files |
| samples/threads_arduino/CMakeLists.txt | Added conditional logic to select board-revision-specific overlay files |
| CMakeLists.txt | Modified variant directory detection logic and added double-underscore replacement for NORMALIZED_BOARD_TARGET |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
5f3f8fc to
cbd179a
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Fixed to use %zd which corresponds to size_t. Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
cbd179a to
24b2346
Compare
Fixed to use %zd which corresponds to size_t.