From: Alexander Couzens Date: Tue, 13 Aug 2024 19:33:30 +0000 (+0200) Subject: uqmid: osmocom/fsm: fix logline for 64bit timestamp X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=c54ceb687743d49ea3c447a2756940867c3ea7b4;p=project%2Fuqmi.git uqmid: osmocom/fsm: fix logline for 64bit timestamp Signed-off-by: Alexander Couzens --- diff --git a/uqmid/osmocom/fsm.c b/uqmid/osmocom/fsm.c index 250ff24..17816c7 100644 --- a/uqmid/osmocom/fsm.c +++ b/uqmid/osmocom/fsm.c @@ -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 */