mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-23 15:55:10 +01:00
Debug module only outputs full lines instead of parts
This commit is contained in:
parent
eaebbd5eaa
commit
92478c37a6
3 changed files with 36 additions and 25 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue