comparison src/g23m-fad/tcpip/rnet/rnet_trace.c @ 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.c
3 *
4 * Riviera NET.
5 *
6 * PC trace functions. Only under Riviera Tool.
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/30/2002 Vincent Oberle Create
18 *
19 * (C) Copyright 2002 by Texas Instruments Incorporated, All Rights Reserved
20 */
21
22 #include "rnet_trace_i.h"
23
24 #ifdef RNET_TRACE_RET
25
26 /**
27 * Traces the return value of RNET API functions.
28 */
29 void rnet_trace_ret (T_RNET_RET ret)
30 {
31 switch (ret) {
32 case RNET_OK:
33 //RNET_TRACE_LOW("RNET: OK");
34 break;
35 case RNET_MEMORY_ERR:
36 RNET_TRACE_LOW("RNET: MEMORY_ERR");
37 break;
38 case RNET_INVALID_PARAMETER:
39 RNET_TRACE_LOW("RNET: INVALID_PARAMETER");
40 break;
41 case RNET_NOT_SUPPORTED:
42 RNET_TRACE_LOW("RNET: NOT_SUPPORTED");
43 break;
44 case RNET_NOT_READY:
45 RNET_TRACE_LOW("RNET: NOT_READY");
46 break;
47 case RNET_INTERNAL_ERR:
48 RNET_TRACE_LOW("RNET: INTERNAL_ERR");
49 break;
50 case RNET_IN_USE:
51 RNET_TRACE_LOW("RNET: IN_USE");
52 break;
53 case RNET_NOT_INITIALIZED:
54 RNET_TRACE_LOW("RNET: NOT_INITIALIZED");
55 break;
56 case RNET_NET_UNREACHABLE:
57 RNET_TRACE_LOW("RNET: NET_UNREACHABLE");
58 break;
59 case RNET_TIMEOUT:
60 RNET_TRACE_LOW("RNET: TIMEOUT");
61 break;
62 case RNET_CONN_REFUSED:
63 RNET_TRACE_LOW("RNET: CONN_REFUSED");
64 break;
65 case RNET_CONN_RESET:
66 RNET_TRACE_LOW("RNET: CONN_RESET");
67 break;
68 case RNET_CONN_ABORTED:
69 RNET_TRACE_LOW("RNET: CONN_ABORTED");
70 break;
71 case RNET_CONN_CLOSED:
72 RNET_TRACE_LOW("RNET: CONN_CLOSED");
73 break;
74 case RNET_MSG_SIZE:
75 RNET_TRACE_LOW("RNET: MSG_SIZE");
76 break;
77 case RNET_PARTIAL_SENT:
78 RNET_TRACE_LOW("RNET: PARTIAL_SENT");
79 break;
80 case RNET_HOST_NOT_FOUND:
81 RNET_TRACE_LOW("RNET: HOST_NOT_FOUND");
82 break;
83
84 default:
85 RNET_TRACE_MEDIUM_PARAM("RNET: Unknown return value: ", ret);
86 }
87 }
88
89 #endif
90