Fix corePKCS11 demo logging message (#1205)

* Flush demo log before demo exit in corePKCS11 demo
* Fix logging line break problem
* Flush log when there is assertion
This commit is contained in:
chinglee-iot 2024-04-15 10:27:02 +08:00 committed by GitHub
parent dd4789cdba
commit e6b4e8288f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 96 additions and 8 deletions

View file

@ -51,6 +51,11 @@
/*-----------------------------------------------------------*/
extern void vPlatformInitLogging( void );
extern void vPlatformStopLoggingThreadAndFlush( void );
/*-----------------------------------------------------------*/
static void prvPKCS11DemoTask( void * pvParameters )
{
configPRINTF( ( "---------STARTING DEMO---------\r\n" ) );
@ -68,6 +73,7 @@ static void prvPKCS11DemoTask( void * pvParameters )
#endif
configPRINTF( ( "---------Finished DEMO---------\r\n" ) );
vPlatformStopLoggingThreadAndFlush();
exit( 0 );
}