Rename a debug function
diff --git a/include/mbedtls/debug.h b/include/mbedtls/debug.h
index bbbc2e8..6b44f1f 100644
--- a/include/mbedtls/debug.h
+++ b/include/mbedtls/debug.h
@@ -41,7 +41,7 @@
 #define MBEDTLS_DEBUG_STRIP_PARENS( ... )   __VA_ARGS__
 
 #define MBEDTLS_SSL_DEBUG_MSG( level, args )                    \
-    mbedtls_debug_print_fmt( ssl, level, __FILE__, __LINE__,    \
+    mbedtls_debug_print_msg( ssl, level, __FILE__, __LINE__,    \
                              MBEDTLS_DEBUG_STRIP_PARENS args )
 
 #define MBEDTLS_SSL_DEBUG_RET( level, text, ret )                \
@@ -89,7 +89,7 @@
  */
 void mbedtls_debug_set_threshold( int threshold );
 
-void mbedtls_debug_print_fmt( const mbedtls_ssl_context *ssl, int level,
+void mbedtls_debug_print_msg( const mbedtls_ssl_context *ssl, int level,
                               const char *file, int line,
                               const char *format, ... );
 
diff --git a/library/debug.c b/library/debug.c
index 8189473..672e045 100644
--- a/library/debug.c
+++ b/library/debug.c
@@ -52,7 +52,7 @@
     debug_threshold = threshold;
 }
 
-void mbedtls_debug_print_fmt( const mbedtls_ssl_context *ssl, int level,
+void mbedtls_debug_print_msg( const mbedtls_ssl_context *ssl, int level,
                               const char *file, int line,
                               const char *format, ... )
 {
diff --git a/tests/suites/test_suite_debug.function b/tests/suites/test_suite_debug.function
index 9cfd684..3c77ca5 100644
--- a/tests/suites/test_suite_debug.function
+++ b/tests/suites/test_suite_debug.function
@@ -59,7 +59,7 @@
     mbedtls_debug_set_threshold( threshold );
     mbedtls_ssl_conf_dbg( &conf, string_debug, &buffer);
 
-    mbedtls_debug_print_fmt( &ssl, level, file, line,
+    mbedtls_debug_print_msg( &ssl, level, file, line,
                              "Text message, 2 == %d", 2 );
 
     TEST_ASSERT( strcmp( buffer.buf, result_str ) == 0 );