Skip to content

Commit a2078c6

Browse files
authored
Arm backend: Use %zu instead of %lu (#15974)
1 parent c0533df commit a2078c6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

examples/arm/executor_runner/arm_executor_runner.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ void runner_init(
584584
}
585585
#endif
586586
auto loader = BufferDataLoader(program_data, ctx.program_data_len);
587-
ET_LOG(Info, "PTE Model data loaded. Size: %lu bytes.", ctx.program_data_len);
587+
ET_LOG(Info, "PTE Model data loaded. Size: %zu bytes.", ctx.program_data_len);
588588

589589
// Parse the program file. This is immutable, and can also be reused
590590
// between multiple execution invocations across multiple threads.
@@ -597,7 +597,7 @@ void runner_init(
597597
program.error());
598598
}
599599

600-
ET_LOG(Info, "Model buffer loaded, has %lu methods", program->num_methods());
600+
ET_LOG(Info, "Model buffer loaded, has %zu methods", program->num_methods());
601601

602602
{
603603
const auto method_name_result = program->get_method_name(0);
@@ -617,7 +617,7 @@ void runner_init(
617617

618618
ET_LOG(
619619
Info,
620-
"Setup Method allocator pool. Size: %lu bytes.",
620+
"Setup Method allocator pool. Size: %zu bytes.",
621621
method_allocation_pool_size);
622622

623623
ctx.method_allocator.reset(
@@ -817,15 +817,15 @@ void log_mem_status(RunnerContext& ctx) {
817817
#if defined(ET_MODEL_PTE_ADDR)
818818
ET_LOG(
819819
Info,
820-
"model_pte_program_size: %lu bytes. (pte size unknown when not baked into elf)",
820+
"model_pte_program_size: %zu bytes. (pte size unknown when not baked into elf)",
821821
ctx.program_data_len);
822822
ET_LOG(
823823
Info,
824-
"model_pte_loaded_size: %lu bytes. (pte size unknown when not baked into elf)",
824+
"model_pte_loaded_size: %zu bytes. (pte size unknown when not baked into elf)",
825825
ctx.pte_size);
826826
#else
827-
ET_LOG(Info, "model_pte_program_size: %lu bytes.", ctx.program_data_len);
828-
ET_LOG(Info, "model_pte_loaded_size: %lu bytes.", ctx.pte_size);
827+
ET_LOG(Info, "model_pte_program_size: %zu bytes.", ctx.program_data_len);
828+
ET_LOG(Info, "model_pte_loaded_size: %zu bytes.", ctx.pte_size);
829829
#endif
830830

831831
#if defined(SEMIHOSTING)

0 commit comments

Comments
 (0)