Skip to content

Commit 5687ce7

Browse files
committed
drivers/cc3100: Remove simplelink trace messages completely.
Those trace messages have never proven to be useful and they make the code 9K bigger.
1 parent 33ddb56 commit 5687ce7

1 file changed

Lines changed: 0 additions & 28 deletions

File tree

‎drivers/cc3100/inc/trace.h‎

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -59,23 +59,13 @@ extern "C" {
5959
#define SL_HANDLING_ERROR 1
6060
#define SL_HANDLING_NONE 0
6161

62-
#if defined(DEBUG) && !defined(BOOTLOADER)
63-
#define SL_SELF_COND_HANDLING SL_HANDLING_ASSERT
64-
#define SL_PROTOCOL_HANDLING SL_HANDLING_ASSERT
65-
#define SL_DRV_RET_CODE_HANDLING SL_HANDLING_ASSERT
66-
#define SL_NWP_IF_HANDLING SL_HANDLING_ASSERT
67-
#define SL_OSI_RET_OK_HANDLING SL_HANDLING_ASSERT
68-
#define SL_MALLOC_OK_HANDLING SL_HANDLING_ASSERT
69-
#define SL_USER_ARGS_HANDLING SL_HANDLING_ASSERT
70-
#else
7162
#define SL_SELF_COND_HANDLING SL_HANDLING_NONE
7263
#define SL_PROTOCOL_HANDLING SL_HANDLING_NONE
7364
#define SL_DRV_RET_CODE_HANDLING SL_HANDLING_NONE
7465
#define SL_NWP_IF_HANDLING SL_HANDLING_NONE
7566
#define SL_OSI_RET_OK_HANDLING SL_HANDLING_NONE
7667
#define SL_MALLOC_OK_HANDLING SL_HANDLING_NONE
7768
#define SL_USER_ARGS_HANDLING SL_HANDLING_NONE
78-
#endif
7969

8070
#if (SL_DRV_RET_CODE_HANDLING == SL_HANDLING_ASSERT)
8171
#define VERIFY_RET_OK(Func) {_SlReturnVal_t _RetVal = (Func); _SL_ASSERT((_SlReturnVal_t)SL_OS_RET_CODE_OK == _RetVal)}
@@ -142,23 +132,6 @@ extern "C" {
142132
#define ARG_CHECK_PTR(Ptr)
143133
#endif
144134

145-
#if defined(DEBUG) && !defined(BOOTLOADER)
146-
#include "std.h"
147-
#define SL_DBG_TRACE_ENABLE
148-
#endif
149-
#ifdef SL_DBG_TRACE_ENABLE
150-
#define SL_TRACE0(level,msg_id,str)
151-
#define SL_TRACE1(level,msg_id,str,p1)
152-
#define SL_TRACE2(level,msg_id,str,p1,p2)
153-
#define SL_TRACE3(level,msg_id,str,p1,p2,p3)
154-
#define SL_TRACE4(level,msg_id,str,p1,p2,p3,p4)
155-
#define SL_ERROR_TRACE(msg_id,str) printf(str)
156-
#define SL_ERROR_TRACE1(msg_id,str,p1) printf(str,(p1))
157-
#define SL_ERROR_TRACE2(msg_id,str,p1,p2) printf(str,(p1),(p2))
158-
#define SL_ERROR_TRACE3(msg_id,str,p1,p2,p3) printf(str,(p1),(p2),(p3))
159-
#define SL_ERROR_TRACE4(msg_id,str,p1,p2,p3,p4) printf(str,(p1),(p2),(p3),(p4))
160-
#define SL_TRACE_FLUSH()
161-
#else
162135
#define SL_TRACE0(level,msg_id,str)
163136
#define SL_TRACE1(level,msg_id,str,p1)
164137
#define SL_TRACE2(level,msg_id,str,p1,p2)
@@ -170,7 +143,6 @@ extern "C" {
170143
#define SL_ERROR_TRACE3(msg_id,str,p1,p2,p3)
171144
#define SL_ERROR_TRACE4(msg_id,str,p1,p2,p3,p4)
172145
#define SL_TRACE_FLUSH()
173-
#endif
174146

175147
/* #define SL_DBG_CNT_ENABLE */
176148
#ifdef SL_DBG_CNT_ENABLE

0 commit comments

Comments
 (0)