comparison src/g23m-fad/tcpip/rnet/rnet_trace_i.h @ 174:90eb61ecd093

src/g23m-fad: initial import from TCS3.2/LoCosto
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 12 Oct 2016 05:40:46 +0000
parents
children
comparison
equal deleted inserted replaced
173:bf64d785238a 174:90eb61ecd093
1 /**
2 * @file rnet_trace_i.h
3 *
4 * Riviera NET - Internal file.
5 *
6 * RNET trace macros.
7 *
8 * @author Vincent Oberle (v-oberle@ti.com)
9 * @version 0.1
10 */
11
12 /*
13 * History:
14 *
15 * Date Author Modification
16 * --------------------------------------------------
17 * 01/25/2002 Vincent Oberle Create
18 *
19 * (C) Copyright 2002 by Texas Instruments Incorporated, All Rights Reserved
20 */
21
22 #ifndef __RNET_TRACE_I_H_
23 #define __RNET_TRACE_I_H_
24
25 #include "rv_general.h"
26 #include "rvf_api.h"
27 #include "rvm_use_id_list.h"
28
29 #include "rnet_api.h"
30
31 /** Traces the return value of RNET API functions or not. */
32 #define RNET_TRACE_RET
33
34 #define RNET_TRACE(string, level) \
35 rvf_send_trace(string, sizeof(string) - 1, NULL_PARAM, level, RNET_USE_ID);
36
37 #define RNET_TRACE_PARAM(string, param, level) \
38 rvf_send_trace(string, sizeof(string) - 1, param, level, RNET_USE_ID);
39
40 #define RNET_TRACE_ERROR(string) \
41 rvf_send_trace(string, sizeof(string) - 1, NULL_PARAM, \
42 RV_TRACE_LEVEL_ERROR, RNET_USE_ID);
43
44 #define RNET_TRACE_ERROR_PARAM(string, param) \
45 rvf_send_trace(string, sizeof(string) - 1, param, \
46 RV_TRACE_LEVEL_ERROR, RNET_USE_ID);
47
48 #define RNET_TRACE_WARNING(string) \
49 rvf_send_trace(string, sizeof(string) - 1, NULL_PARAM, \
50 RV_TRACE_LEVEL_WARNING, RNET_USE_ID);
51
52 #define RNET_TRACE_WARNING_PARAM(string, param) \
53 rvf_send_trace(string, sizeof(string) - 1, param, \
54 RV_TRACE_LEVEL_WARNING, RNET_USE_ID);
55
56 #define RNET_TRACE_HIGH(string) \
57 rvf_send_trace(string, sizeof(string) - 1, NULL_PARAM, \
58 RV_TRACE_LEVEL_DEBUG_HIGH, RNET_USE_ID);
59
60 #define RNET_TRACE_HIGH_PARAM(string, param) \
61 rvf_send_trace(string, sizeof(string) - 1, param, \
62 RV_TRACE_LEVEL_DEBUG_HIGH, RNET_USE_ID);
63
64 #define RNET_TRACE_MEDIUM(string) \
65 rvf_send_trace(string, sizeof(string) - 1, NULL_PARAM, \
66 RV_TRACE_LEVEL_DEBUG_MEDIUM, RNET_USE_ID);
67
68 #define RNET_TRACE_MEDIUM_PARAM(string, param) \
69 rvf_send_trace(string, sizeof(string) - 1, param, \
70 RV_TRACE_LEVEL_DEBUG_MEDIUM, RNET_USE_ID);
71
72 #define RNET_TRACE_LOW(string) \
73 rvf_send_trace(string, sizeof(string) - 1, NULL_PARAM, \
74 RV_TRACE_LEVEL_DEBUG_LOW, RNET_USE_ID);
75
76 #define RNET_TRACE_LOW_PARAM(string, param) \
77 rvf_send_trace(string, sizeof(string) - 1, param, \
78 RV_TRACE_LEVEL_DEBUG_LOW, RNET_USE_ID);
79
80 #ifdef RNET_TRACE_RET
81 void rnet_trace_ret (T_RNET_RET ret);
82 #else
83 #define rnet_trace_ret(ret)
84 #endif
85
86 #endif /* __RNET_TRACE_I_H_ */
87