File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 127127 #define WOLFSSL_NO_FLOAT_FMT
128128 #endif
129129
130+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION (5 , 15 , 0 )) || \
131+ (defined(RHEL_MAJOR ) && \
132+ ((RHEL_MAJOR > 9 ) || ((RHEL_MAJOR == 9 ) && (RHEL_MINOR >= 5 ))))
133+ #define WOLFSSL_DEBUG_PRINTF_FN _printk
134+ #else
135+ #define WOLFSSL_DEBUG_PRINTF_FN printk
136+ #endif
137+
130138#ifndef WOLFSSL_LINUXKM_USE_MUTEXES
131139 struct wolfSSL_Mutex ;
132140 extern int wc_lkm_LockMutex (struct wolfSSL_Mutex * m );
Original file line number Diff line number Diff line change @@ -505,7 +505,7 @@ WOLFSSL_API void wolfSSL_SetLoggingPrefix(const char* prefix);
505505 * For custom debugging output, define your own WOLFSSL_DEBUG_PRINTF_FN
506506 */
507507#ifdef WOLFSSL_DEBUG_PRINTF_FN
508- /* user-supplied definition */
508+ /* user- or port- supplied definition */
509509#elif defined(ARDUINO )
510510 /* ARDUINO only has print and sprintf, no printf. */
511511#elif defined(__WATCOMC__ )
@@ -548,8 +548,6 @@ WOLFSSL_API void wolfSSL_SetLoggingPrefix(const char* prefix);
548548 #define WOLFSSL_DEBUG_PRINTF_FIRST_ARGS ANDROID_LOG_VERBOSE, "[wolfSSL]",
549549#elif defined(WOLFSSL_XILINX )
550550 #define WOLFSSL_DEBUG_PRINTF_FN xil_printf
551- #elif defined(WOLFSSL_LINUXKM )
552- #define WOLFSSL_DEBUG_PRINTF_FN printk
553551#elif defined(WOLFSSL_RENESAS_RA6M4 )
554552 #define WOLFSSL_DEBUG_PRINTF_FN myprintf
555553#elif defined(NO_STDIO_FILESYSTEM )
You can’t perform that action at this time.
0 commit comments