RTI Connext Micro  Version 2.4.1.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
rtps_log.h
Go to the documentation of this file.
1 /*
2  * FILE: rtps_log.h - RTPS Log definitions
3  *
4  * Copyright 2013-2014 Real-Time Innovations, Inc.
5  *
6  * All rights reserved.
7  ** No duplications, whole or partial, manual or electronic, may be made
8  * without express written permission. Any such copies, or
9  * revisions thereof, must display this notice unaltered.
10  * This code contains trade secrets of Real-Time Innovations, Inc.
11  *
12  * Modification History
13  * --------------------
14  * 30may2013,eh MICRO-415: resource limit msgs
15  * 28may2013,eh Written for new logging
16  */
17 
18 /*ce
19  * \file
20  * \brief RTPS module log codes
21  */
22 #ifndef rtps_log_h
23 #define rtps_log_h
24 
25 
26 #ifndef osapi_log_h
27 #include "osapi/osapi_log.h"
28 #endif
29 
30 /*ce
31  * \defgroup RTPSLogCodesClass RTPS
32  * \brief Real-Time Publish-Subscribe. ModuleID = 6
33  * \ingroup LoggingModule
34  */
35 
36 /*ce
37  * \brief Failed to initialize an RTPS interface
38  * \ingroup RTPSLogCodesClass
39  */
40 #define RTPS_LOG_INITIALIZE_INTERFACE (RTPS_LOG_BASE + 1)
41 #define RTPS_Log_initialize_interface(level_) \
42 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_INITIALIZE_INTERFACE,\
43  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
44 
45 /*ce
46  * \brief Failed to allocate heap memory for internal resources
47  * \ingroup RTPSLogCodesClass
48  */
49 #define RTPS_LOG_ALLOCATE (RTPS_LOG_BASE + 2)
50 #define RTPS_Log_allocate(level_) \
51 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_ALLOCATE,\
52  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
53 
54 /*ce
55  * \brief Failed to create a database table for storing RTPS route info
56  * \ingroup RTPSLogCodesClass
57  */
58 #define RTPS_LOG_CREATE_ROUTE_TABLE (RTPS_LOG_BASE + 3)
59 #define RTPS_Log_create_route_table(level_,dbrc_) \
60 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_CREATE_ROUTE_TABLE,\
61  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,"dbrc=%d",(dbrc_))
62 
63 /*ce
64  * \brief Failed to create database index for route-peer info
65  * \ingroup RTPSLogCodesClass
66  */
67 #define RTPS_LOG_DB_CREATE_ROUTE_PEER_INDEX (RTPS_LOG_BASE + 4)
68 #define RTPS_Log_db_create_route_peer_index(level_,dbrc_) \
69 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_DB_CREATE_ROUTE_PEER_INDEX,\
70  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,"dbrc=%d",(dbrc_))
71 
72 /*ce
73  * \brief Failed to create database index for route-transport info
74  * \ingroup RTPSLogCodesClass
75  */
76 #define RTPS_LOG_DB_CREATE_ROUTE_XPORT_INDEX (RTPS_LOG_BASE + 5)
77 #define RTPS_Log_db_create_route_xport_index(level_) \
78 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_DB_CREATE_ROUTE_XPORT_INDEX,\
79  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
80 
81 /*ce
82  * \brief Failed to create database index for bind-peer info
83  * \ingroup RTPSLogCodesClass
84  */
85 #define RTPS_LOG_DB_CREATE_BIND_PEER_INDEX (RTPS_LOG_BASE + 6)
86 #define RTPS_Log_db_create_bind_peer_index(level_) \
87 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_DB_CREATE_BIND_PEER_INDEX,\
88  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
89 
90 /*ce
91  * \brief Failed to add an entry to a database index
92  * \ingroup RTPSLogCodesClass
93  */
94 #define RTPS_LOG_INDEX_ADD_ENTRY (RTPS_LOG_BASE + 8)
95 #define RTPS_Log_index_add_entry(level_) \
96 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_INDEX_ADD_ENTRY,\
97  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
98 
99 /*ce
100  * \brief Failed to select all entries of a database table
101 * \details Failure reason given by database return code (dbrc)
102  * \ingroup RTPSLogCodesClass
103  */
104 #define RTPS_LOG_DB_SELECT_ALL (RTPS_LOG_BASE + 9)
105 #define RTPS_Log_db_select_all(level_,dbrc_) \
106 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_DB_SELECT_ALL,\
107  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,"dbrc=%d",(dbrc_))
108 
109 /*ce
110  * \brief Matching entry not found in a database table.
111  * \details Failure reason given by database return code (dbrc)
112  * \ingroup RTPSLogCodesClass
113  */
114 #define RTPS_LOG_DB_SELECT_MATCH (RTPS_LOG_BASE + 10)
115 #define RTPS_Log_db_select_match(level_,dbrc_) \
116 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_DB_SELECT_MATCH,\
117  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,"dbrc=%d",(dbrc_))
118 
119 /*ce
120  * \brief No matching entries found in a database table.
121  * \ingroup RTPSLogCodesClass
122  */
123 #define RTPS_LOG_DB_SELECT_RANGE (RTPS_LOG_BASE + 11)
124 #define RTPS_Log_db_select_range(level_,dbrc_) \
125 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_DB_SELECT_RANGE,\
126  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,"dbrc=%d",(dbrc_))
127 
128 /*ce
129  * \brief Failed to create database entry for route.
130  *
131  * \details May have exceeded
132  * DomainParticipantQos.resource_limits.matching_writer_reader_pair_allocation,
133  * DataWriterQos.writer_resource_limits.max_remote_readers, or
134  * DataReaderQos.reader_resource_limits.max_remote_writers
135  * \ingroup RTPSLogCodesClass
136  */
137 #define RTPS_LOG_DB_CREATE_ROUTE_ENTRY (RTPS_LOG_BASE + 12)
138 #define RTPS_Log_db_create_route_entry(level_,dbrc_) \
139 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_DB_CREATE_ROUTE_ENTRY,\
140  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,"dbrc=%d",(dbrc_))
141 
142 /*ce
143  * \brief Failed to insert entry into route table
144  * \details Failure reason given by database return code (dbrc)
145  * \ingroup RTPSLogCodesClass
146  */
147 #define RTPS_LOG_DB_INSERT_ROUTE_ENTRY (RTPS_LOG_BASE + 13)
148 #define RTPS_Log_db_insert_route_entry(level_,dbrc_) \
149 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_DB_INSERT_ROUTE_ENTRY,\
150  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,"dbrc=%d",(dbrc_))
151 
152 /*ce
153  * \brief Failed to remove entry from route table
154  * \details Failure reason given by database return code (dbrc)
155  */
156 #define RTPS_LOG_DB_REMOVE_ROUTE_ENTRY (RTPS_LOG_BASE + 14)
157 #define RTPS_Log_db_remove_route_entry(level_,dbrc_) \
158 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_DB_REMOVE_ROUTE_ENTRY,\
159  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,"dbrc=%d",(dbrc_))
160 
161 /*ce
162  * \brief Failed to delete entry from route table
163  * \details Failure reason given by database return code (dbrc)
164  * \ingroup RTPSLogCodesClass
165  */
166 #define RTPS_LOG_DB_DELETE_ROUTE_ENTRY (RTPS_LOG_BASE + 15)
167 #define RTPS_Log_db_delete_route_entry(level_,dbrc_) \
168 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_DB_DELETE_ROUTE_ENTRY,\
169  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,"dbrc=%d",(dbrc_))
170 
171 /*ce
172  * \brief Failed to create database entry for bind.
173  *
174  * \details If DomainParticipant, may have exceeded
175  * DomainParticipantQos.resource_limits.matching_reader_writer_pair_allocation.
176  * Failure reason given by database return code (dbrc).
177  * \ingroup RTPSLogCodesClass
178  */
179 #define RTPS_LOG_DB_CREATE_BIND_ENTRY (RTPS_LOG_BASE + 16)
180 #define RTPS_Log_db_create_bind_entry(level_,dbrc_) \
181 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_DB_CREATE_BIND_ENTRY,\
182  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,"dbrc=%d",(dbrc_))
183 
184 /*ce
185  * \brief Failed to insert an entry into the bind table.
186  * \details Failure reason given by database return code (dbrc)
187  * \ingroup RTPSLogCodesClass
188  */
189 #define RTPS_LOG_DB_INSERT_BIND_ENTRY (RTPS_LOG_BASE + 17)
190 #define RTPS_Log_db_insert_bind_entry(level_,dbrc_) \
191 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_DB_INSERT_BIND_ENTRY,\
192  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,"dbrc=%d",(dbrc_))
193 
194 /*ce
195  * \brief Failed to remove an entry from the bind table.
196  * \details Failure reason given by database return code (dbrc)
197  * \ingroup RTPSLogCodesClass
198  */
199 #define RTPS_LOG_DB_REMOVE_BIND_ENTRY (RTPS_LOG_BASE + 18)
200 #define RTPS_Log_db_remove_bind_entry(level_,dbrc_) \
201 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_DB_REMOVE_BIND_ENTRY,\
202  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,"dbrc=%d",(dbrc_))
203 
204 /*ce
205  * \brief Failed to remove an entry from the external bind table.
206  * \details Failure reason given by database return code (dbrc)
207  * \ingroup RTPSLogCodesClass
208  */
209 #define RTPS_LOG_DB_REMOVE_EXTERNAL_BIND_ENTRY (RTPS_LOG_BASE + 19)
210 #define RTPS_Log_db_remove_external_bind_entry(level_,dbrc_) \
211 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_DB_REMOVE_EXTERNAL_BIND_ENTRY,\
212  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,"dbrc=%d",(dbrc_))
213 
214 /*ce
215  * \brief Failed to delete entry from external bind table
216  * \details Failure reason given by database return code (dbrc)
217  * \ingroup RTPSLogCodesClass
218  */
219 #define RTPS_LOG_DB_DELETE_EXTERNAL_BIND_ENTRY (RTPS_LOG_BASE + 20)
220 #define RTPS_Log_db_delete_external_bind_entry(level_,dbrc_) \
221 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_DB_DELETE_EXTERNAL_BIND_ENTRY,\
222  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,"dbrc=%d",(dbrc_))
223 
224 /*ce
225  * \brief Failed to send a packet due to a lower module failing to send the
226  * packet.
227  * \ingroup RTPSLogCodesClass
228  */
229 #define RTPS_LOG_SEND (RTPS_LOG_BASE + 21)
230 #define RTPS_Log_send(level_) \
231 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_SEND,\
232  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
233 
234 /*ce
235  * \brief Failed to receive a packet due to a higher module failing to receive
236  * the packet.
237  * \ingroup RTPSLogCodesClass
238  */
239 #define RTPS_LOG_RECEIVE (RTPS_LOG_BASE + 22)
240 #define RTPS_Log_receive(level_) \
241 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_RECEIVE,\
242  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
243 
244 /*ce
245  * \brief Failed to send a packet, when routing to a lower module or peer
246  * \ingroup RTPSLogCodesClass
247  */
248 #define RTPS_LOG_ROUTE_PACKET (RTPS_LOG_BASE + 23)
249 #define RTPS_Log_route_packet(level_) \
250 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_ROUTE_PACKET,\
251  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
252 
253 /*ce
254  * \brief Failed to receive a packet, when forwarding to a higher upstream module
255  * \ingroup RTPSLogCodesClass
256  */
257 #define RTPS_LOG_FORWARD_UPSTREAM (RTPS_LOG_BASE + 24)
258 #define RTPS_Log_forward_upstream(level_) \
259 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_FORWARD_UPSTREAM,\
260  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
261 
262 /*ce
263  * \brief Bad parameter to an RTPS interface function
264  * \ingroup RTPSLogCodesClass
265  */
266 #define RTPS_LOG_BAD_PARAMETER (RTPS_LOG_BASE + 25)
267 #define RTPS_Log_bad_parameter(level_) \
268 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_BAD_PARAMETER,\
269  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
270 
271 /*ce
272  * \brief Failed because interface is not enabled
273  * \ingroup RTPSLogCodesClass
274  */
275 #define RTPS_LOG_NOT_ENABLED (RTPS_LOG_BASE + 26)
276 #define RTPS_Log_not_enabled(level_) \
277 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_NOT_ENABLED,\
278  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
279 
280 /*ce
281  * \brief RTPS reader does not support send
282  * \ingroup RTPSLogCodesClass
283  */
284 #define RTPS_LOG_READER_UNSUPPORTED (RTPS_LOG_BASE + 27)
285 #define RTPS_Log_reader_unsupported(level_) \
286 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_READER_UNSUPPORTED,\
287  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
288 
289 /*ce
290  * \brief Upstream interface does not match source or destination of packet
291  * being sent or received
292  * \ingroup RTPSLogCodesClass
293  */
294 #define RTPS_LOG_INTERFACE_MISMATCH (RTPS_LOG_BASE + 28)
295 #define RTPS_Log_interface_mismatch(level_) \
296 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_INTERFACE_MISMATCH,\
297  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
298 
299 /*ce
300  * \brief Failed to send due to reaching maximum send window size
301  * \ingroup RTPSLogCodesClass
302  */
303 #define RTPS_LOG_FULL_SEND_WINDOW (RTPS_LOG_BASE + 29)
304 #define RTPS_Log_full_send_window(level_) \
305 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_FULL_SEND_WINDOW,\
306  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
307 
308 /*ce
309  * \brief Failed to set tail of packet to send
310  * \ingroup RTPSLogCodesClass
311  */
312 #define RTPS_LOG_NETIO_PACKET_SET_TAIL (RTPS_LOG_BASE + 31)
313 #define RTPS_Log_netio_packet_set_tail(level_) \
314 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_NETIO_PACKET_SET_TAIL,\
315  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
316 
317 /*ce
318  * \brief RTPS interface does not support this function
319  * \ingroup RTPSLogCodesClass
320  */
321 #define RTPS_LOG_FUNC_UNSUPPORTED (RTPS_LOG_BASE + 32)
322 #define RTPS_Log_func_unsupported(level_) \
323 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_FUNC_UNSUPPORTED,\
324  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
325 
326 /*ce
327  * \brief Out of transport entries.
328  * \details Exceeded either
329  * DataWriterQos.writer_resource_limits.max_remote_readers or
330  * DataReaderQos.reader_resource_limits.max_remote_writers
331  * \ingroup RTPSLogCodesClass
332  */
333 #define RTPS_LOG_EXCEEDED_LIMIT_TRANSPORTS (RTPS_LOG_BASE + 33)
334 #define RTPS_Log_exceeded_limit_transports(level_) \
335 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_EXCEEDED_LIMIT_TRANSPORTS,\
336  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
337 
338 /*ce
339  * \brief Out of peer entries.
340  *
341  * \details Exceeded either
342  * DataWriterQos.writer_resource_limits.max_remote_readers or
343  * DataReaderQos.reader_resource_limits.max_remote_writers
344  * \ingroup RTPSLogCodesClass
345  */
346 #define RTPS_LOG_EXCEEDED_LIMIT_PEERS (RTPS_LOG_BASE + 34)
347 #define RTPS_Log_exceeded_limit_peers(level_) \
348 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_EXCEEDED_LIMIT_PEERS,\
349  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
350 
351 /*ce
352  * \brief Failed to assert a remote writer or reader
353  * \ingroup RTPSLogCodesClass
354  */
355 #define RTPS_LOG_ASSERT_PEER (RTPS_LOG_BASE + 35)
356 #define RTPS_Log_assert_peer(level_) \
357 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_ASSERT_PEER,\
358  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
359 
360 /*ce
361  * \brief Failed to assert a downstream transport
362  * \ingroup RTPSLogCodesClass
363  */
364 #define RTPS_LOG_ASSERT_TRANSPORT (RTPS_LOG_BASE + 36)
365 #define RTPS_Log_assert_transport(level_) \
366 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_ASSERT_TRANSPORT,\
367  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
368 
369 /*ce
370  * \brief Failed to lookup an external interface
371  * \ingroup RTPSLogCodesClass
372  */
373 #define RTPS_LOG_FIND_EXTERNAL_INTERFACE (RTPS_LOG_BASE + 37)
374 #define RTPS_Log_find_external_interface(level_) \
375 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_FIND_EXTERNAL_INTERFACE,\
376  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
377 
378 /*ce
379  * \brief Failed to delete a nonexistent route
380  * \ingroup RTPSLogCodesClass
381  */
382 #define RTPS_LOG_NONEXISTENT_ROUTE (RTPS_LOG_BASE + 38)
383 #define RTPS_Log_nonexistent_route(level_) \
384 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_NONEXISTENT_ROUTE,\
385  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
386 
387 /*ce
388  * \brief Failed to remove a nonexistent bind entry
389  * \ingroup RTPSLogCodesClass
390  */
391 #define RTPS_LOG_NONEXISTENT_BIND (RTPS_LOG_BASE + 39)
392 #define RTPS_Log_nonexistent_bind(level_) \
393 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_NONEXISTENT_BIND,\
394  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
395 
396 /*ce
397  * \brief Failed to remove a nonexistent external bind entry
398  * \ingroup RTPSLogCodesClass
399  */
400 #define RTPS_LOG_NONEXISTENT_EXTERNAL_BIND (RTPS_LOG_BASE + 40)
401 #define RTPS_Log_nonexistent_external_bind(level_) \
402 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_NONEXISTENT_EXTERNAL_BIND,\
403  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
404 
405 /*ce
406  * \brief Dropped an ACKNACK submessage with an old epoch
407  * \ingroup RTPSLogCodesClass
408  */
409 #define RTPS_LOG_STALE_ACK_EPOCH_ (RTPS_LOG_BASE + 41)
410 #define RTPS_Log_stale_ack_epoch(level_) \
411 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_STALE_ACK_EPOCH_,\
412  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
413 
414 /*ce
415  * \brief Dropped a HEARTBEAT submessage with an old epoch
416  * \ingroup RTPSLogCodesClass
417  */
418 #define RTPS_LOG_STALE_HB_EPOCH (RTPS_LOG_BASE + 42)
419 #define RTPS_Log_stale_hb_epoch(level_) \
420 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_STALE_HB_EPOCH,\
421  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
422 
423 /*ce
424  * \brief Failed an acknack() upstream
425  * \ingroup RTPSLogCodesClass
426  */
427 #define RTPS_LOG_ACK (RTPS_LOG_BASE + 43)
428 #define RTPS_Log_ack(level_) \
429 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_ACK,\
430  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
431 
432 /*ce
433  * \brief Failed a request() upstream
434  * \ingroup RTPSLogCodesClass
435  */
436 #define RTPS_LOG_REQUEST (RTPS_LOG_BASE + 45)
437 #define RTPS_Log_request(level_) \
438 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_REQUEST,\
439  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
440 
441 /*ce
442  * \brief Failed a return_loan() upstream
443  * \ingroup RTPSLogCodesClass
444  */
445 #define RTPS_LOG_RETURN_LOAN (RTPS_LOG_BASE + 46)
446 #define RTPS_Log_return_loan(level_) \
447 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_RETURN_LOAN,\
448  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
449 
450 /*ce
451  * \brief Failed to set the head of a packet
452  * \ingroup RTPSLogCodesClass
453  */
454 #define RTPS_LOG_NETIO_PACKET_SET_HEAD (RTPS_LOG_BASE + 47)
455 #define RTPS_Log_netio_packet_set_head(level_) \
456 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_NETIO_PACKET_SET_HEAD,\
457  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
458 
459 /*ce
460  * \brief Failed to send a HEARTBEAT submessage
461  * \ingroup RTPSLogCodesClass
462  */
463 #define RTPS_LOG_SEND_HEARTBEAT (RTPS_LOG_BASE + 48)
464 #define RTPS_Log_send_heartbeat(level_) \
465 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_SEND_HEARTBEAT,\
466  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
467 
468 /*ce
469  * \brief Failed to shift a bitmap
470  * \ingroup RTPSLogCodesClass
471  */
472 #define RTPS_LOG_SHIFT_BITMAP (RTPS_LOG_BASE + 49)
473 #define RTPS_Log_shift_bitmap(level_) \
474 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_SHIFT_BITMAP,\
475  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
476 
477 /*ce
478  * \brief A Reader is fully acknowledged and does not need to respond to a
479  * final HEARTBEAT
480  * \ingroup RTPSLogCodesClass
481  */
482 #define RTPS_LOG_FULLY_ACKED_READER (RTPS_LOG_BASE + 50)
483 #define RTPS_Log_fully_acked_reader(level_) \
484 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_FULLY_ACKED_READER,\
485  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
486 
487 /*ce
488  * \brief Dropping a DATA submessage whose sequence number is outside of
489  * a Reader's receive window
490  * \ingroup RTPSLogCodesClass
491  */
492 #define RTPS_LOG_DATA_OUT_OF_RANGE (RTPS_LOG_BASE + 51)
493 #define RTPS_Log_data_out_of_range(level_) \
494 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_DATA_OUT_OF_RANGE,\
495  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
496 
497 /*ce
498  * \brief Dropping a DATA submessage whose sequence number was previously
499  * received
500  * \ingroup RTPSLogCodesClass
501  */
502 #define RTPS_LOG_DATA_ALREADY_RECEIVED (RTPS_LOG_BASE + 52)
503 #define RTPS_Log_data_already_received(level_) \
504 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_DATA_ALREADY_RECEIVED,\
505  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
506 
507 /*ce
508  * \brief Failed to receive a message because interface is not enabled
509  * \ingroup RTPSLogCodesClass
510  */
511 #define RTPS_LOG_INTERFACE_NOT_ENABLED (RTPS_LOG_BASE + 53)
512 #define RTPS_Log_interface_not_enabled(level_) \
513 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_INTERFACE_NOT_ENABLED,\
514  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
515 
516 /*ce
517  * \brief Dropped a message with an invalid packet header
518  * \ingroup RTPSLogCodesClass
519  */
520 #define RTPS_LOG_INVALID_PACKET (RTPS_LOG_BASE + 54)
521 #define RTPS_Log_invalid_packet(level_) \
522 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_INVALID_PACKET,\
523  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
524 
525 /*ce
526  * \brief Received a message on an unsupported interface
527  * \ingroup RTPSLogCodesClass
528  */
529 #define RTPS_LOG_UNSUPPORTED_INTERFACE (RTPS_LOG_BASE + 55)
530 #define RTPS_Log_unsupported_interface(level_) \
531 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_UNSUPPORTED_INTERFACE,\
532  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
533 
534 /*ce
535  * \brief Received a submessage with an unknown ID
536  * \ingroup RTPSLogCodesClass
537  */
538 #define RTPS_LOG_UNKNOWN_SUBMESSAGE (RTPS_LOG_BASE + 56)
539 #define RTPS_Log_unknown_submessage(level_) \
540 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_UNKNOWN_SUBMESSAGE,\
541  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
542 
543 /*ce
544  * \brief Failed to process received ACKNACK submessage
545  * \ingroup RTPSLogCodesClass
546  */
547 #define RTPS_LOG_PROCESS_ACKNACK (RTPS_LOG_BASE + 57)
548 #define RTPS_Log_process_acknack(level_) \
549 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_PROCESS_ACKNACK,\
550  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
551 
552 /*ce
553  * \brief Failed to process received DATA submessage
554  * \ingroup RTPSLogCodesClass
555  */
556 #define RTPS_LOG_PROCESS_DATA (RTPS_LOG_BASE + 58)
557 #define RTPS_Log_process_data(level_) \
558 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_PROCESS_DATA,\
559  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
560 
561 /*ce
562  * \brief Failed to process received GAP submessage
563  * \ingroup RTPSLogCodesClass
564  */
565 #define RTPS_LOG_PROCESS_GAP (RTPS_LOG_BASE + 59)
566 #define RTPS_Log_process_gap(level_) \
567 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_PROCESS_GAP,\
568  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
569 
570 /*ce
571  * \brief Failed to process received HEARTBEAT submessage
572  * \ingroup RTPSLogCodesClass
573  */
574 #define RTPS_LOG_PROCESS_HEARTBEAT (RTPS_LOG_BASE + 60)
575 #define RTPS_Log_process_heartbeat(level_) \
576 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_PROCESS_HEARTBEAT,\
577  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
578 
579 /*ce
580  * \brief Failed to create periodic HEARTBEAT event
581  * \ingroup RTPSLogCodesClass
582  */
583 #define RTPS_LOG_CREATE_HB_EVENT (RTPS_LOG_BASE + 61)
584 #define RTPS_Log_create_hb_event(level_) \
585 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_CREATE_HB_EVENT,\
586  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
587 
588 /*ce
589  * \brief Failed to create periodic HEARTBEAT event timer
590  * \ingroup RTPSLogCodesClass
591  */
592 #define RTPS_LOG_CREATE_EVENT_TIMER (RTPS_LOG_BASE + 62)
593 #define RTPS_Log_create_event_timer(level_) \
594 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_CREATE_EVENT_TIMER,\
595  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
596 
597 /*ce
598  * \brief Failed to set bitmap bit due to out-of-range sequence number
599  * \ingroup RTPSLogCodesClass
600  */
601 #define RTPS_LOG_SEQ_NUM_OUT_OF_RANGE (RTPS_LOG_BASE + 63)
602 #define RTPS_Log_seq_num_out_of_range(level_,dist_,bc_) \
603 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_SEQ_NUM_OUT_OF_RANGE,\
604  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,2,\
605  "distance=%d,bitcount=%d",(dist_),(bc_))
606 
607 /*ce
608  * \brief Invalid range of sequence numbers to fill in bitmap
609  * \ingroup RTPSLogCodesClass
610  */
611 #define RTPS_LOG_FIRST_SN_GREATER_LAST_SN (RTPS_LOG_BASE + 65)
612 #define RTPS_Log_first_sn_greater_than_last_sn(level_) \
613 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_FIRST_SN_GREATER_LAST_SN,\
614  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
615 
616 /*ce
617  * \brief Deserialized an invalid out-of-bounds bitcount for a bitmap
618  * \ingroup RTPSLogCodesClass
619  */
620 #define RTPS_LOG_BITCOUNT_OUT_OF_BOUNDS (RTPS_LOG_BASE + 66)
621 #define RTPS_Log_bitcount_out_of_bounds(level_,bc_) \
622 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_SEQ_NUM_OUT_OF_RANGE,\
623  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
624  "bitcount=%d",(bc_))
625 
626 /*ce
627  * \brief Failed to shift bitmap due to invalid starting sequence number
628  * \ingroup RTPSLogCodesClass
629  */
630 #define RTPS_LOG_SHIFT_SN_OUT_OF_RANGE (RTPS_LOG_BASE + 67)
631 #define RTPS_Log_shift_seq_num_out_of_range(level_) \
632 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_SHIFT_SN_OUT_OF_RANGE,\
633  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
634 
635 /*ce
636  * \brief Failed to serialize host ID of GUID
637  * \ingroup RTPSLogCodesClass
638  */
639 #define RTPS_LOG_SERIALIZE_HOST_ID (RTPS_LOG_BASE + 68)
640 #define RTPS_Log_serialize_host_id(level_) \
641 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_SERIALIZE_HOST_ID,\
642  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
643 
644 /*ce
645  * \brief Failed to serialize app ID of GUID
646  * \ingroup RTPSLogCodesClass
647  */
648 #define RTPS_LOG_SERIALIZE_APP_ID (RTPS_LOG_BASE + 69)
649 #define RTPS_Log_serialize_app_id(level_) \
650 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_SERIALIZE_APP_ID,\
651  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
652 
653 /*ce
654  * \brief Failed to serialized instance ID of GUID
655  * \ingroup RTPSLogCodesClass
656  */
657 #define RTPS_LOG_SERIALIZE_INSTANCE_ID (RTPS_LOG_BASE + 70)
658 #define RTPS_Log_serialize_instance_id(level_) \
659 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_SERIALIZE_INSTANCE_ID,\
660  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
661 
662 /*ce
663  * \brief Failed to serialize object ID of GUID
664  * \ingroup RTPSLogCodesClass
665  */
666 #define RTPS_LOG_SERIALIZE_OBJECT_ID (RTPS_LOG_BASE + 71)
667 #define RTPS_Log_serialize_object_id(level_) \
668 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_SERIALIZE_OBJECT_ID,\
669  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
670 
671 /*ce
672  * \brief Failed to deserialize host ID of GUID
673  * \ingroup RTPSLogCodesClass
674  */
675 #define RTPS_LOG_DESERIALIZE_HOST_ID (RTPS_LOG_BASE + 72)
676 #define RTPS_Log_deserialize_host_id(level_) \
677 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_DESERIALIZE_HOST_ID,\
678  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
679 
680 /*ce
681  * \brief Faild to deserialize app ID of GUID
682  * \ingroup RTPSLogCodesClass
683  */
684 #define RTPS_LOG_DESERIALIZE_APP_ID (RTPS_LOG_BASE + 73)
685 #define RTPS_Log_deserialize_app_id(level_) \
686 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_DESERIALIZE_APP_ID,\
687  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
688 
689 /*ce
690  * \brief Failed to deserialize instance ID of GUID
691  * \ingroup RTPSLogCodesClass
692  */
693 #define RTPS_LOG_DESERIALIZE_INSTANCE_ID (RTPS_LOG_BASE + 74)
694 #define RTPS_Log_deserialize_instance_id(level_) \
695 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_DESERIALIZE_INSTANCE_ID,\
696  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
697 
698 /*ce
699  * \brief Failed to deserialize object ID of GUID
700  * \ingroup RTPSLogCodesClass
701  */
702 #define RTPS_LOG_DESERIALIZE_OBJECT_ID (RTPS_LOG_BASE + 75)
703 #define RTPS_Log_deserialize_object_id(level_) \
704 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_DESERIALIZE_OBJECT_ID,\
705  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
706 
707 /*ce
708  * \brief Failed to create database entry for external bind table.
709  *
710  * \details If DomainParticipant, may have exceeded
711  * DomainParticipantQos.resource_limits.matching_reader_writer_pair_allocation.
712  * \ingroup RTPSLogCodesClass
713  */
714 #define RTPS_LOG_DB_CREATE_EXT_BIND_ENTRY (RTPS_LOG_BASE + 76)
715 #define RTPS_Log_db_create_ext_bind_entry(level_) \
716 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_DB_CREATE_EXT_BIND_ENTRY,\
717  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
718 
719 /*ce
720  * \brief Failed to set bit in bitmap
721  *
722  * \ingroup RTPSLogCodesClass
723  */
724 #define RTPS_LOG_BITMAP_SET_BIT (RTPS_LOG_BASE + 77)
725 #define RTPS_Log_bitmap_set_bit(level_) \
726 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_BITMAP_SET_BIT,\
727  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
728 
729 /*ce
730  * \brief Received and dropped currently unsupported INFO_REPLY submessage
731  * \ingroup RTPSLogCodesClass
732  */
733 #define RTPS_LOG_UNSUPPORTED_INFO_REPLY (RTPS_LOG_BASE + 78)
734 #define RTPS_Log_unsupported_info_reply(level_) \
735 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_UNSUPPORTED_INFO_REPLY,\
736  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
737 
738 /*ce
739  * \brief Received and dropped currently unsupported INFO_REPLY_IP4 submessage
740  * \ingroup RTPSLogCodesClass
741  */
742 #define RTPS_LOG_UNSUPPORTED_INFO_REPLY_IP4 (RTPS_LOG_BASE + 79)
743 #define RTPS_Log_unsupported_info_reply_ip4(level_) \
744 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_UNSUPPORTED_INFO_REPLY_IP4,\
745  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
746 
747 /*ce
748  * \brief Received and dropped currently unsupported INFO_SRC submessage
749  * \ingroup RTPSLogCodesClass
750  */
751 #define RTPS_LOG_UNSUPPORTED_INFO_SRC (RTPS_LOG_BASE + 80)
752 #define RTPS_Log_unsupported_info_src(level_) \
753 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_UNSUPPORTED_INFO_SRC,\
754  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
755 
756 /*ce
757  * \brief Failed to delete index of a database table
758  * \ingroup RTPSLogCodesClass
759  */
760 #define RTPS_LOG_DELETE_INDEX (RTPS_LOG_BASE + 81)
761 #define RTPS_Log_delete_index(level_,dbrc_) \
762 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_DELETE_INDEX,\
763  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,"dbrc=%d",(dbrc_))
764 
765 /*ce
766  * \brief Failed to delete a database table
767  * \ingroup RTPSLogCodesClass
768  */
769 #define RTPS_LOG_DELETE_TABLE (RTPS_LOG_BASE + 82)
770 #define RTPS_Log_delete_table(level_,dbrc_) \
771 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_DELETE_TABLE,\
772  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,"dbrc=%d",(dbrc_))
773 
774 /*ce
775  * \brief Failed to take database lock
776  * \ingroup RTPSLogCodesClass
777  */
778 #define RTPS_LOG_DB_LOCK (RTPS_LOG_BASE + 83)
779 #define RTPS_Log_db_lock(level_) \
780 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_DB_LOCK,\
781  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
782 
783 /*ce
784  * \brief Failed to give database lock
785  * \ingroup RTPSLogCodesClass
786  */
787 #define RTPS_LOG_DB_UNLOCK (RTPS_LOG_BASE + 84)
788 #define RTPS_Log_db_unlock(level_) \
789 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_DB_UNLOCK,\
790  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
791 
792 /*ce
793  * \brief Failed to create a database table for storing RTPS bind info
794  * \ingroup RTPSLogCodesClass
795  */
796 #define RTPS_LOG_CREATE_BIND_TABLE (RTPS_LOG_BASE + 85)
797 #define RTPS_Log_create_bind_table(level_,dbrc_) \
798 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_CREATE_BIND_TABLE,\
799  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,"dbrc=%d",(dbrc_))
800 
801 /*ce
802  * \brief Failed to update status for reliable reader activity changed.
803  * \ingroup RTPSLogCodesClass
804  */
805 #define RTPS_LOG_STATUS_CHANGE (RTPS_LOG_BASE + 86)
806 #define RTPS_Log_status_change(level_) \
807 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_STATUS_CHANGE,\
808  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
809 
810 /*ce
811  * \brief Failed to update status for reliable reader activity changed.
812  * \ingroup RTPSLogCodesClass
813  */
814 #define RTPS_LOG_SET_GAP (RTPS_LOG_BASE + 87)
815 #define RTPS_Log_set_gap(level_,start_,end_,sffx_) \
816 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_SET_GAP,\
817  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,3,\
818  "start=%d,end=%d,suffix=0x%x",(start_),(end_),(sffx_))
819 
820 /*ce
821  * \brief Out of memory to allocate send window pool
822  * \ingroup RTPSLogCodesClass
823  */
824 #define RTPS_LOG_WINDOW_POOL_ALLOC (RTPS_LOG_BASE + 88)
825 #define RTPS_Log_window_pool_alloc(level_,size_,count_) \
826 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_WINDOW_POOL_ALLOC,\
827  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,2,\
828  "size=%d,count=%d",(size_),(count_))
829 
830 /*ce
831  * \brief Failed to get buffer from send window pool
832  * \ingroup RTPSLogCodesClass
833  */
834 #define RTPS_LOG_GET_WINDOW_BUFFER (RTPS_LOG_BASE + 89)
835 #define RTPS_Log_get_window_buffer(level_) \
836 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_GET_WINDOW_BUFFER,\
837  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
838 
839 /*ce
840  * \brief Cannot insert sample into full window
841  * \ingroup RTPSLogCodesClass
842  */
843 #define RTPS_LOG_INSERT_WINDOW_FULL (RTPS_LOG_BASE + 90)
844 #define RTPS_Log_insert_window_full(level_) \
845 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_INSERT_WINDOW_FULL,\
846  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
847 
848 /*ce
849  * \brief Failed to insert sample into send window
850  * \ingroup RTPSLogCodesClass
851  */
852 #define RTPS_LOG_WINDOW_INSERT (RTPS_LOG_BASE + 91)
853 #define RTPS_Log_window_insert(level_) \
854 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_WINDOW_INSERT,\
855  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
856 
857 /*ce
858  * \brief Failed to delete a timeout event
859  * \ingroup RTPSLogCodesClass
860  */
861 #define RTPS_LOG_TIMER_DELETE_TIMEOUT (RTPS_LOG_BASE + 92)
862 #define RTPS_Log_timer_delete_timeout(level_) \
863 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_TIMER_DELETE_TIMEOUT,\
864  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
865 
866 /*ce
867  * \brief Failed to delete a buffer pool
868  * \ingroup RTPSLogCodesClass
869  */
870 #define RTPS_LOG_BUFFERPOOL_DELETE (RTPS_LOG_BASE + 93)
871 #define RTPS_Log_bufferpool_delete(level_) \
872 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_BUFFERPOOL_DELETE,\
873  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
874 
875 /*ce
876  * \brief Failed to send a message to a specific peer
877  * \ingroup RTPSLogCodesClass
878  */
879 #define RTPS_LOG_DIRECT_SEND (RTPS_LOG_BASE + 94)
880 #define RTPS_Log_direct_send(level_) \
881 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_DIRECT_SEND,\
882  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
883 
884 /*ce
885  * \brief RTPS writer failed to initialize a packet
886  * \ingroup RTPSLogCodesClass
887  */
888 #define RTPS_LOG_PACKET_INITIALIZE (RTPS_LOG_BASE + 95)
889 #define RTPS_Log_packet_initialize(level_) \
890 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_PACKET_INITIALIZE,\
891  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
892 
893 /*ce
894  * \brief RTPS reliable writer failed to request and resend history
895  * \ingroup RTPSLogCodesClass
896  */
897 #define RTPS_LOG_WRITER_REQUEST_SENT_HISTORY (RTPS_LOG_BASE + 96)
898 #define RTPS_Log_writer_request_send_history(level_) \
899 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_WRITER_REQUEST_SENT_HISTORY,\
900  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
901 
902 /*ce
903  * \brief Failed to shift bitmap to new lead sequence number
904  * \ingroup RTPSLogCodesClass
905  */
906 #define RTPS_LOG_BITMAP_SHIFT (RTPS_LOG_BASE + 97)
907 #define RTPS_Log_bitmap_shift(level_) \
908 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_BITMAP_SHIFT,\
909  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
910 
911 /*ce
912  * \brief Send window of a remote reader failed to advance
913  * \ingroup RTPSLogCodesClass
914  */
915 #define RTPS_LOG_WINDOW_ADVANCE (RTPS_LOG_BASE + 98)
916 #define RTPS_Log_window_advance(level_) \
917 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_WINDOW_ADVANCE,\
918  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
919 
920 /*ce
921  * \brief Failed when advancing window ahead of unacknowledged sequence number
922  * \ingroup RTPSLogCodesClass
923  */
924 #define RTPS_LOG_WINDOW_ADVANCE_UNACKED (RTPS_LOG_BASE + 99)
925 #define RTPS_Log_window_advance_unacked(level_) \
926 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_WINDOW_ADVANCE_UNACKED,\
927  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
928 
929 /*ce
930  * \brief Failed to find peer that should exist
931  * \ingroup RTPSLogCodesClass
932  */
933 #define RTPS_LOG_LOOKUP_PEER (RTPS_LOG_BASE + 100)
934 #define RTPS_Log_lookup_peer(level_) \
935 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_LOOKUP_PEER,\
936  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
937 
938 /*ce
939  * \brief RTPS reader failed to send an ACKNACK message
940  * \ingroup RTPSLogCodesClass
941  */
942 #define RTPS_LOG_READER_SEND_ACKNACK (RTPS_LOG_BASE + 101)
943 #define RTPS_Log_reader_send_acknack(level_) \
944 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_READER_SEND_ACKNACK,\
945  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
946 
947 /*ce
948  * \brief Failed to finalize an RTPS interface
949  * \ingroup RTPSLogCodesClass
950  */
951 #define RTPS_LOG_FINALIZE_INTERFACE (RTPS_LOG_BASE + 102)
952 #define RTPS_Log_finalize_interface(level_) \
953 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_FINALIZE_INTERFACE,\
954  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
955 
956 /*ce
957  * \brief Failed to remove index entry for external interface upon deleting
958  * RTPS interface
959  * \ingroup RTPSLogCodesClass
960  */
961 #define RTPS_LOG_INDEXER_REMOVE_ENTRY (RTPS_LOG_BASE + 103)
962 #define RTPS_Log_indexer_remove_entry(level_) \
963 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_INDEXER_REMOVE_ENTRY,\
964  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
965 
966 /*ce
967  * \brief Failed when looking up external bind entry from database
968  * \ingroup RTPSLogCodesClass
969  */
970 #define RTPS_LOG_LOOKUP_EXT_BIND_ENTRY (RTPS_LOG_BASE + 104)
971 #define RTPS_Log_lookup_ext_bind_entry(level_,dbrc_) \
972 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_LOOKUP_EXT_BIND_ENTRY,\
973  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,"dbrc=%d",(dbrc_))
974 
975 /*ce
976  * \brief Failed to initialize a local sequence
977  * \ingroup RTPSLogCodesClass
978  */
979 #define RTPS_LOG_SEQ_INIT (RTPS_LOG_BASE + 105)
980 #define RTPS_Log_seq_init(level_) \
981 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_SEQ_INIT,\
982  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
983 
984 /*ce
985  * \brief Failed to set maximum of a local sequence
986  * \ingroup RTPSLogCodesClass
987  */
988 #define RTPS_LOG_SEQ_MAX (RTPS_LOG_BASE + 106)
989 #define RTPS_Log_seq_max(level_) \
990 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_SEQ_MAX,\
991  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
992 
993 /*ce
994  * \brief Failed to set length of a local sequence
995  * \ingroup RTPSLogCodesClass
996  */
997 #define RTPS_LOG_SEQ_LEN (RTPS_LOG_BASE + 107)
998 #define RTPS_Log_seq_len(level_) \
999 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_SEQ_LEN,\
1000  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
1001 
1002 /*ce
1003  * \brief Initializing an RTPS interface with undefined mode
1004  * \ingroup RTPSLogCodesClass
1005  */
1006 #define RTPS_LOG_INTF_MODE_UNDEF (RTPS_LOG_BASE + 108)
1007 #define RTPS_Log_intf_mode_undef(level_) \
1008 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_INTF_MODE_UNDEF,\
1009  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
1010 
1011 /*ce
1012  * \brief Failed to delete buffer pool
1013  * \details May still have buffers in use, thus cannot delete pool.
1014  * \ingroup RTPSLogCodesClass
1015  */
1016 #define RTPS_LOG_DELETE_BUFFER_POOL (RTPS_LOG_BASE + 109)
1017 #define RTPS_Log_delete_buffer_pool(level_) \
1018 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_DELETE_BUFFER_POOL,\
1019  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
1020 
1021 /*ce
1022  * \brief Failed to create buffer pool
1023  * \details May have insufficient memory to allocate pool.
1024  * \ingroup RTPSLogCodesClass
1025  */
1026 #define RTPS_LOG_CREATE_BUFFER_POOL (RTPS_LOG_BASE + 110)
1027 #define RTPS_Log_create_buffer_pool(level_,size_,count_) \
1028 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_CREATE_BUFFER_POOL,\
1029  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,2,\
1030  "size=%d,count=%d",(size_),(count_))
1031 
1032 /*ce
1033  * \brief Failed to create index of peers
1034  * \details System may have insufficient memory to allocate new index.
1035  * \ingroup RTPSLogCodesClass
1036  */
1037 #define RTPS_LOG_CREATE_PEERS_INDEX (RTPS_LOG_BASE + 111)
1038 #define RTPS_Log_create_peers_index(level_) \
1039 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_CREATE_PEERS_INDEX,\
1040  OSAPI_LOG_MSG_PN_X2_STD_PARAM, 0)
1041 
1042 
1043 /*ce
1044  * \brief Failed to delete indexer
1045  * \ingroup RTPSLogCodesClass
1046  */
1047 #define RTPS_LOG_DELETE_INDEXER (RTPS_LOG_BASE + 112)
1048 #define RTPS_Log_delete_indexer(level_) \
1049 OSAPI_Log_msg_pN_X2((level_),RTPS_LOG_DELETE_INDEXER,\
1050  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
1051 
1052 
1053 #endif /* rtps_log_h */

RTI Connext Micro Version 2.4.1.0 Copyright © Thu Nov 20 2014 Real-Time Innovations, Inc