[sntp-clinet] simplify uint64 constants

This commit is contained in:
Abtin Keshavarzian
2019-06-05 18:03:13 -07:00
committed by Jonathan Hui
parent d52aa05b54
commit 2a5403d94a
2 changed files with 4 additions and 5 deletions
+2 -2
View File
@@ -2994,8 +2994,8 @@ void Interpreter::HandleSntpResponse(uint64_t aTime, otError aResult)
{
// Some Embedded C libraries do not support printing of 64-bit unsigned integers.
// To simplify, unix epoch time and era number are printed separately.
mServer->OutputFormat("SNTP response - Unix time: %ld (era: %ld)\r\n",
static_cast<uint32_t>(aTime & UINT32_MAX), static_cast<uint32_t>(aTime >> 32));
mServer->OutputFormat("SNTP response - Unix time: %ld (era: %ld)\r\n", static_cast<uint32_t>(aTime),
static_cast<uint32_t>(aTime >> 32));
}
else
{