Refine code base on comments
Move code to proper macro guards protection
Fix typo issues
Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
diff --git a/library/ssl_client.c b/library/ssl_client.c
index baf82a6..341e882 100644
--- a/library/ssl_client.c
+++ b/library/ssl_client.c
@@ -885,9 +885,9 @@
if( hostname_mismatch )
{
- MBEDTLS_SSL_DEBUG_MSG( 1,
- ( "hostname mismatch the session ticket,"
- " should not resume " ) );
+ MBEDTLS_SSL_DEBUG_MSG(
+ 1, ( "Hostname mismatch the session ticket, "
+ "disable session resumption." ) );
return( MBEDTLS_ERR_SSL_BAD_INPUT_DATA );
}
}