@@ -160,7 +160,9 @@ int main(void)
160160 uint64_t hand_per_tick = hand_ns / BENCH_ITERATIONS ;
161161
162162 LOG_INF ("--- Hand-coded Kalman ---" );
163- LOG_INF (" Total: %llu ns (%llu ns/tick)" , hand_ns , hand_per_tick );
163+ /* Print in ms (uint32) to avoid any %llu 32-bit printing issues */
164+ LOG_INF (" Total: %u ms (%u ns/tick)" ,
165+ (uint32_t )(hand_ns / 1000000ULL ), (uint32_t )hand_per_tick );
164166 LOG_INF (" RAM (struct): %u bytes" , (unsigned )sizeof (struct hand_kf ));
165167 LOG_INF (" Final estimate: %d (true: %d)" , hkf .x_est , true_val );
166168
@@ -228,7 +230,8 @@ int main(void)
228230 uint64_t ARBITER_per_tick = ARBITER_ns / BENCH_ITERATIONS ;
229231
230232 LOG_INF ("--- arbiter Engine Kalman ---" );
231- LOG_INF (" Total: %llu ns (%llu ns/tick)" , ARBITER_ns , ARBITER_per_tick );
233+ LOG_INF (" Total: %u ms (%u ns/tick)" ,
234+ (uint32_t )(ARBITER_ns / 1000000ULL ), (uint32_t )ARBITER_per_tick );
232235 LOG_INF (" RAM (ctx): %u bytes" , (unsigned )sizeof (struct ARBITER_ctx ));
233236 LOG_INF (" Final estimate: %d (true: %d)" ,
234237 zctx .fact_values [F_X_EST ].value , true_val );
@@ -247,8 +250,9 @@ int main(void)
247250 / hand_per_tick ;
248251 }
249252
250- LOG_INF (" Overhead: %llu%% (%llu vs %llu ns/tick)" ,
251- overhead_pct , ARBITER_per_tick , hand_per_tick );
253+ LOG_INF (" Overhead: %u%% (%u vs %u ns/tick)" ,
254+ (uint32_t )overhead_pct , (uint32_t )ARBITER_per_tick ,
255+ (uint32_t )hand_per_tick );
252256 LOG_INF (" RAM delta: %u bytes" ,
253257 (unsigned )(sizeof (struct ARBITER_ctx ) - sizeof (struct hand_kf )));
254258 LOG_INF (" ROM: compare .elf sizes (see README)" );
0 commit comments