mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-08 17:42:09 +03:00
Debug module only outputs full lines instead of parts
This commit is contained in:
@@ -14,6 +14,13 @@ void string_debug(void *data, int level, const char *str)
|
||||
|
||||
memcpy(buffer->ptr, str, strlen(str));
|
||||
buffer->ptr += strlen(str);
|
||||
|
||||
/* Detect if debug messages output partial lines and mark them */
|
||||
if( *(buffer->ptr - 1) != '\n' )
|
||||
{
|
||||
*buffer->ptr = '*';
|
||||
buffer->ptr++;
|
||||
}
|
||||
}
|
||||
/* END_HEADER */
|
||||
|
||||
|
Reference in New Issue
Block a user