Skip to content

samples: hello_arduino: Correct printk format specifier#145

Merged
DhruvaG2000 merged 1 commit intozephyrproject-rtos:nextfrom
soburi:correct_printk_format
Feb 3, 2026
Merged

samples: hello_arduino: Correct printk format specifier#145
DhruvaG2000 merged 1 commit intozephyrproject-rtos:nextfrom
soburi:correct_printk_format

Conversation

@soburi
Copy link
Copy Markdown
Member

@soburi soburi commented Jan 31, 2026

Fixed to use %zd which corresponds to size_t.

@soburi soburi changed the title Correct printk format samples: hello_arduino: Correct printk format specifier Jan 31, 2026
@soburi soburi marked this pull request as ready for review February 1, 2026 13:47
Copilot AI review requested due to automatic review settings February 1, 2026 13:47
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@soburi soburi marked this pull request as draft February 1, 2026 14:25
@soburi soburi force-pushed the correct_printk_format branch from 5f3f8fc to cbd179a Compare February 3, 2026 10:54
@soburi soburi requested a review from Copilot February 3, 2026 11:27
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@soburi soburi marked this pull request as ready for review February 3, 2026 12:16
Fixed to use %zd which corresponds to size_t.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
@soburi soburi force-pushed the correct_printk_format branch from cbd179a to 24b2346 Compare February 3, 2026 13:28
@DhruvaG2000 DhruvaG2000 merged commit 33ff52d into zephyrproject-rtos:next Feb 3, 2026
3 checks passed
@soburi soburi deleted the correct_printk_format branch February 3, 2026 21:25
soburi pushed a commit to soburi/ArduinoCore-zephyr that referenced this pull request Feb 6, 2026
soburi pushed a commit to soburi/ArduinoCore-zephyr that referenced this pull request Feb 6, 2026
soburi pushed a commit to soburi/ArduinoCore-zephyr that referenced this pull request Feb 7, 2026
@soburi soburi mentioned this pull request Feb 14, 2026
16 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants