RTI Connext Micro  Version 2.4.1.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
rt_log.h
Go to the documentation of this file.
1 /*
2  * FILE: rt_log.h - RT Log definitions
3  *
4  * Copyright 2012-2014 Real-Time Innovations, Inc.
5  *
6  * No duplications, whole or partial, manual or electronic, may be made
7  * without express written permission. Any such copies, or
8  * revisions thereof, must display this notice unaltered.
9  * This code contains trade secrets of Real-Time Innovations, Inc.
10  *
11  * Modification History
12  * --------------------
13  * 14oct2014,tk MICRO-943/PR#11893 Use correct ID for RT_Log_registry_inconsistent_cid
14  * 04sep2012,tk Written
15  */
16  /*ce
17  * \file
18  * \defgroup RTLogCodesClass RT
19  * \brief RT. ModuleID = 3
20  * \ingroup LoggingModule
21  */
22 #ifndef rt_log_h
23 #define rt_log_h
24 
25 #ifndef osapi_log_h
26 #include "osapi/osapi_log.h"
27 #endif
28 
29 /*ce
30  * \brief Failed to set registry property due to registry being already enabled
31  * \ingroup RTLogCodesClass
32  */
33 #define RT_LOG_SET_IMMUTABLE_PROPERTY (RT_LOG_BASE + 1)
34 #define RT_Log_set_immutable_property(level_) \
35 OSAPI_Log_msg_pN_X2((level_),RT_LOG_SET_IMMUTABLE_PROPERTY,\
36  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
37 
38 /*ce
39  * \brief Failed to initialize registry due to failed table creation
40  * \ingroup RTLogCodesClass
41  */
42 #define RT_LOG_REGISTRY_INIT_FAILURE (RT_LOG_BASE + 2)
43 #define RT_Log_registry_init_failure(level_,dbrc_) \
44 OSAPI_Log_msg_pN_X2((level_),RT_LOG_REGISTRY_INIT_FAILURE,\
45  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
46  "dbrc=%d",(dbrc_))
47 
48 /*ce
49  * \brief Failed to finalize registry due to failed table deletion
50  * \ingroup RTLogCodesClass
51  */
52 #define RT_LOG_REGISTRY_FINALIZE (RT_LOG_BASE + 3)
53 #define RT_Log_registry_finalize(level_,dbrc_) \
54 OSAPI_Log_msg_pN_X2((level_),RT_LOG_REGISTRY_FINALIZE,\
55  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
56  "dbrc=%d",(dbrc_))
57 
58 /*ce
59  * \brief Failed to register a factory that was previously registered
60  * \ingroup RTLogCodesClass
61  */
62 #define RT_LOG_REGISTRY_EXISTS (RT_LOG_BASE + 4)
63 #define RT_Log_registry_exists(level_,name_) \
64 OSAPI_Log_msg_pN_X2((level_),RT_LOG_REGISTRY_EXISTS,\
65  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
66  "name=%s",(name_))
67 
68 /*ce
69  * \brief Error registering a component factory. May have exceeded
70  * RT_RegistryProperty.max_factories
71  * \ingroup RTLogCodesClass
72  */
73 #define RT_LOG_REGISTRY_REGISTER (RT_LOG_BASE + 5)
74 #define RT_Log_registry_register(level_,dbrc_) \
75 OSAPI_Log_msg_pN_X2((level_),RT_LOG_REGISTRY_REGISTER,\
76  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,\
77  "dbrc=%d",(dbrc_))
78 
79 /*ce
80  * \brief A registered factory failed to initialize
81  * \ingroup RTLogCodesClass
82  */
83 #define RT_LOG_REGISTRY_INIT_FACTORY (RT_LOG_BASE + 7)
84 #define RT_Log_registry_init_factory(level_) \
85 OSAPI_Log_msg_pN_X2((level_),RT_LOG_REGISTRY_INIT_FACTORY,\
86  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
87 
88 
89 /*ce
90  * \brief Factory name longer than maximum length of 8
91  * \ingroup RTLogCodesClass
92  */
93 #define RT_LOG_REGISTRY_NAME_TOO_LONG (RT_LOG_BASE + 8)
94 #define RT_Log_registry_name_too_long(level_,name_,len_) \
95 OSAPI_Log_msg_pN_X2((level_),RT_LOG_REGISTRY_NAME_TOO_LONG,\
96  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,3,\
97  "name=%s,len=%d (>%d)",(name_),(len_),RT_MAX_FACTORY_NAME)
98 
99 /*ce
100  * \brief Factory name exists, but the class ID is not of the requested type
101  * \ingroup RTLogCodesClass
102  */
103 #define RT_LOG_REGISTRY_INCONSISTENT_CID (RT_LOG_BASE + 9)
104 #define RT_Log_registry_inconsistent_cid(level_,name_,req_cid_,real_cid_) \
105 OSAPI_Log_msg_pN_X2((level_),RT_LOG_REGISTRY_INCONSISTENT_CID,\
106  OSAPI_LOG_MSG_PN_X2_STD_PARAM ,3,\
107  "name=%s,req cid=%d,real cid=%d",(name_),(req_cid_),(real_cid_))
108 
109 
110 #endif

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