From e4bc4abff2f37eb35b31c0e496c31e2960f0f7ee Mon Sep 17 00:00:00 2001 From: Jintao Lin Date: Tue, 10 Nov 2020 23:22:49 +0800 Subject: [PATCH] [posix] reduce RCP time sync log (#5791) --- src/lib/spinel/radio_spinel_impl.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/spinel/radio_spinel_impl.hpp b/src/lib/spinel/radio_spinel_impl.hpp index 932d0fb5c..678f07244 100644 --- a/src/lib/spinel/radio_spinel_impl.hpp +++ b/src/lib/spinel/radio_spinel_impl.hpp @@ -1781,8 +1781,6 @@ void RadioSpinel::CalcRcpTimeOffset(void) uint8_t buffer[sizeof(remoteTimestamp)]; spinel_ssize_t packed; - otLogInfoPlat("Trying to get RCP time offset"); - /* * Use a modified Network Time Protocol(NTP) to calculate the time offset * Assume the time offset is D so that local can calculate remote time with, @@ -1809,6 +1807,9 @@ void RadioSpinel::CalcRcpTimeOffset(void) */ VerifyOrExit(!mIsTimeSynced || (otPlatTimeGet() >= GetNextRadioTimeRecalcStart())); + + otLogDebgPlat("Trying to get RCP time offset"); + packed = spinel_datatype_pack(buffer, sizeof(buffer), SPINEL_DATATYPE_UINT64_S, remoteTimestamp); VerifyOrExit(packed > 0 && static_cast(packed) <= sizeof(buffer), error = OT_ERROR_NO_BUFS);