- Timestamp:
- Jun 22, 2021, 9:00:19 PM (3 years ago)
- Location:
- azure_iot_hub_f767zi/trunk/wolfssl-4.7.0
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
azure_iot_hub_f767zi/trunk/wolfssl-4.7.0/wolfcrypt/src/logging.c
r457 r464 112 112 #endif /* WOLFSSL_FUNC_TIME */ 113 113 114 #ifdef HAVE_WC_INTROSPECTION 115 116 const char *wolfSSL_configure_args(void) { 117 #ifdef LIBWOLFSSL_CONFIGURE_ARGS 118 /* the spaces on either side are to make matching simple and efficient. */ 119 return " " LIBWOLFSSL_CONFIGURE_ARGS " "; 120 #else 121 return NULL; 122 #endif 123 } 124 125 const char *wolfSSL_global_cflags(void) { 126 #ifdef LIBWOLFSSL_GLOBAL_CFLAGS 127 /* the spaces on either side are to make matching simple and efficient. */ 128 return " " LIBWOLFSSL_GLOBAL_CFLAGS " "; 129 #else 130 return NULL; 131 #endif 132 } 133 134 #endif /* HAVE_WC_INTROSPECTION */ 135 136 #ifdef HAVE_STACK_SIZE_VERBOSE 137 138 THREAD_LS_T unsigned char *StackSizeCheck_myStack = NULL; 139 THREAD_LS_T size_t StackSizeCheck_stackSize = 0; 140 THREAD_LS_T size_t StackSizeCheck_stackSizeHWM = 0; 141 THREAD_LS_T size_t *StackSizeCheck_stackSizeHWM_ptr = 0; 142 THREAD_LS_T void *StackSizeCheck_stackOffsetPointer = 0; 143 144 #endif /* HAVE_STACK_SIZE_VERBOSE */ 145 114 146 #ifdef DEBUG_WOLFSSL 115 147 … … 231 263 #elif defined(WOLFSSL_ANDROID_DEBUG) 232 264 #include <android/log.h> 233 #else 234 #include <stdio.h> /* for default printf stuff */ 265 #elif defined(WOLFSSL_XILINX) 266 #include "xil_printf.h" 267 #elif defined(WOLFSSL_LINUXKM) 268 /* the requisite linux/kernel.h is included in wc_port.h, with incompatible warnings masked out. */ 269 #elif defined(FUSION_RTOS) 270 #include <fclstdio.h> 271 #include <wolfssl/wolfcrypt/wc_port.h> 272 #define fprintf FCL_FPRINTF 273 #else 274 #include <stdio.h> /* for default printf stuff */ 235 275 #endif 236 276 … … 264 304 #elif defined(MQX_USE_IO_OLD) 265 305 fprintf(_mqxio_stderr, "%s\n", logMessage); 266 267 306 #elif defined(WOLFSSL_APACHE_MYNEWT) 268 307 LOG_DEBUG(&mynewt_log, LOG_MODULE_DEFAULT, "%s\n", logMessage); … … 275 314 #elif defined(WOLFSSL_ANDROID_DEBUG) 276 315 __android_log_print(ANDROID_LOG_VERBOSE, "[wolfSSL]", "%s", logMessage); 316 #elif defined(WOLFSSL_XILINX) 317 xil_printf("%s\r\n", logMessage); 318 #elif defined(WOLFSSL_LINUXKM) 319 printk("%s\n", logMessage); 277 320 #else 278 321 fprintf(stderr, "%s\n", logMessage); … … 818 861 { 819 862 next = current->next; 820 cb(current->error, strlen(current->error), u);863 cb(current->error, XSTRLEN(current->error), u); 821 864 XFREE(current, current->heap, DYNAMIC_TYPE_LOG); 822 865 current = next;
Note:
See TracChangeset
for help on using the changeset viewer.