Commit 07f97073 authored by Dmitriy Zhuravlev's avatar Dmitriy Zhuravlev Committed by Kevin Kane

Fix mbedtls debug format

Remove carriage return from debug message
added by default in mbedtls

Change-Id: Ie6077a5eb294f1790b87472b4baa69fc283016c0
Signed-off-by: default avatarOleksandr Dmytrenko <o.dmytrenko@samsung.com>
Signed-off-by: default avatarDmitriy Zhuravlev <d.zhuravlev@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16761Tested-by: default avatarjenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: default avatarAndrii Shtompel <a.shtompel@samsung.com>
Reviewed-by: default avatarKevin Kane <kkane@microsoft.com>
parent 82012af3
...@@ -388,6 +388,13 @@ static void DebugSsl(void *ctx, int level, const char *file, int line, const cha ...@@ -388,6 +388,13 @@ static void DebugSsl(void *ctx, int level, const char *file, int line, const cha
((void) line); ((void) line);
((void) ctx); ((void) ctx);
char * temp = (char*) str;
size_t len = strlen(temp);
if (1 <= len && temp[len - 1] == '\n')
{
temp[len - 1] = '\0';
}
OIC_LOG_V(DEBUG, MBED_TLS_TAG, "%s", str); OIC_LOG_V(DEBUG, MBED_TLS_TAG, "%s", str);
} }
#endif #endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment