mirror of
https://github.com/espressif/openthread.git
synced 2026-07-29 23:27:46 +00:00
fix code style issue make pretty founds. (#1622)
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
void otPbkdf2Cmac(
|
||||
const uint8_t *aPassword, uint16_t aPasswordLen,
|
||||
const uint8_t *aSalt, uint16_t aSaltLen,
|
||||
uint32_t aIterationCounter , uint16_t aKeyLen,
|
||||
uint32_t aIterationCounter, uint16_t aKeyLen,
|
||||
uint8_t *aKey)
|
||||
{
|
||||
uint32_t blockCounter = 0;
|
||||
|
||||
@@ -482,7 +482,7 @@ ThreadError Dtls::MapError(int rval)
|
||||
return error;
|
||||
}
|
||||
|
||||
void Dtls::HandleMbedtlsDebug(void *ctx, int level, const char *, int , const char *str)
|
||||
void Dtls::HandleMbedtlsDebug(void *ctx, int level, const char *, int, const char *str)
|
||||
{
|
||||
Dtls *pThis = static_cast<Dtls *>(ctx);
|
||||
(void)pThis;
|
||||
|
||||
@@ -199,7 +199,7 @@ static void Test(TestIphcVector &aVector, bool aCompress, bool aDecompress)
|
||||
}
|
||||
else
|
||||
{
|
||||
VerifyOrQuit(compressBytes < 0 , "6lo: Lowpan::Compress failed");
|
||||
VerifyOrQuit(compressBytes < 0, "6lo: Lowpan::Compress failed");
|
||||
}
|
||||
|
||||
message->Free();
|
||||
@@ -226,14 +226,14 @@ static void Test(TestIphcVector &aVector, bool aCompress, bool aDecompress)
|
||||
otTestPrintHex(result, message->GetLength() + iphcLength - decompressedBytes);
|
||||
printf("\n");
|
||||
|
||||
VerifyOrQuit(decompressedBytes == aVector.mIphcHeader.mLength , "6lo: Lowpan::Decompress failed");
|
||||
VerifyOrQuit(decompressedBytes == aVector.mIphcHeader.mLength, "6lo: Lowpan::Decompress failed");
|
||||
VerifyOrQuit(message->GetOffset() == aVector.mPayloadOffset, "6lo: Lowpan::Decompress failed");
|
||||
VerifyOrQuit(message->GetOffset() == message->GetLength(), "6lo: Lowpan::Decompress failed");
|
||||
VerifyOrQuit(memcmp(ip6, result, ip6Length) == 0, "6lo: Lowpan::Decompress failed");
|
||||
}
|
||||
else
|
||||
{
|
||||
VerifyOrQuit(decompressedBytes < 0 , "6lo: Lowpan::Decompress failed");
|
||||
VerifyOrQuit(decompressedBytes < 0, "6lo: Lowpan::Decompress failed");
|
||||
}
|
||||
|
||||
message->Free();
|
||||
|
||||
@@ -415,7 +415,7 @@ exit:
|
||||
return kPlatResetReason_PowerOn;
|
||||
}
|
||||
|
||||
void otPlatLog(otLogLevel , otLogRegion , const char *, ...)
|
||||
void otPlatLog(otLogLevel, otLogRegion, const char *, ...)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user