uqmid: osmocom/fsm: fix logline for 64bit timestamp
authorAlexander Couzens <[email protected]>
Tue, 13 Aug 2024 19:33:30 +0000 (21:33 +0200)
committerDavid Bauer <[email protected]>
Sat, 31 May 2025 20:41:00 +0000 (22:41 +0200)
Signed-off-by: Alexander Couzens <[email protected]>
uqmid/osmocom/fsm.c

index 250ff24678b429627c16b7802c701f067d6215b5..17816c73fe65f61a1cfce1a7bbc78fbf92c85e13 100644 (file)
@@ -660,7 +660,7 @@ static int state_chg(struct osmo_fsm_inst *fi, uint32_t new_state,
                        else
                                snprintf(trailer, sizeof(trailer), "(keeping " OSMO_T_FMT
                                          ", %ld.%03lds remaining)", OSMO_T_FMT_ARGS(fi->T),
-                                         (long) remaining.tv_sec, remaining.tv_usec / 1000);
+                                         (long) remaining.tv_sec, (long) remaining.tv_usec / 1000);
                } else if (timeout_ms) {
                        if (timeout_ms % 1000 == 0)
                                /* keep log output legacy compatible to avoid autotest failures */