in source/core_sntp_client.c [523:534]
static void rotateServerForNextTimeQuery( SntpContext_t * pContext )
{
size_t nextServerIndex = ( pContext->currentServerIndex + 1U ) % pContext->numOfServers;
LogInfo( ( "Rotating server for next time query: PreviousServer=%.*s, NextServer=%.*s",
( int ) pContext->pTimeServers[ pContext->currentServerIndex ].serverNameLen,
pContext->pTimeServers[ pContext->currentServerIndex ].pServerName,
( int ) pContext->pTimeServers[ nextServerIndex ].serverNameLen,
pContext->pTimeServers[ nextServerIndex ].pServerName ) );
pContext->currentServerIndex = nextServerIndex;
}