Arm: fix size_t log format specifiers - #22946
Conversation
Signed-off-by: Ricardo Alves de Souza <ricardoasouz@hotmail.com>
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/22946
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ❌ 1 New Failure, 1 PendingAs of commit f27edb6 with merge base 6cbdc03 ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
|
|
@pytorchbot label "release notes: none" |
|
Hey, thanks for the fix! The runner defines |
Signed-off-by: Ricardo Alves de Souza <ricardoasouz@hotmail.com>
Thanks! Updated the casts introduced by this PR to use printf_size_t. arm_perf_monitor.cpp defines the alias locally, consistent with the other Arm translation units. Re-validated on Corstone-300 FVP with per-delegate and I/O-copy profiling enabled. |
Fixes #13038.
Summary
Replace the remaining %zu / %zd format specifiers in the Arm executor runner with %lu using the existing printf_size_t logging type.
The runner already documents this convention because newlib-nano
printfdoes not reliably handle thezlength modifier on the bare-metal/FVP path. A few logging sites still usedz, which could result in malformed output on FVP.Validation
git diff --checkarm_executor_runnerforethos-u55-128with Arm GNU Toolchain 15.2.1ET_ARM_ETHOSU_PER_DELEGATE_PROFILING=ONET_ARM_ETHOSU_PROFILE_IO_COPIES=ONcc @digantdesai @freddan80 @per @zingo @oscarandersson8218 @mansnils @Sebastian-Larsson @robell @rascani