rptun ping: fix data format warning

Signed-off-by: wangyongrong <wangyongrong@xiaomi.com>
This commit is contained in:
wangyongrong 2023-11-17 12:41:14 +08:00 committed by Xiang Xiao
parent 661171661f
commit 62698051c7
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ static void rptun_ping_logout_rate(uint64_t len, clock_t avg)
rateint = ratebits / 1000000; rateint = ratebits / 1000000;
ratedec = ratebits - rateint * 1000000; ratedec = ratebits - rateint * 1000000;
syslog(LOG_INFO, "rate: %d.%06d Mbits/sec\n", rateint, ratedec); syslog(LOG_INFO, "rate: %zu.%06zu Mbits/sec\n", rateint, ratedec);
} }
/**************************************************************************** /****************************************************************************