FreeCalypso > hg > fc-tourmaline
comparison src/g23m-fad/tcpip/rnet/rnet_trace.c @ 1:fa8dc04885d8
src/g23m-*: import from Magnetite
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 16 Oct 2020 06:25:50 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:4e78acac3d88 | 1:fa8dc04885d8 |
---|---|
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 |