Motr  M0
iem.h
Go to the documentation of this file.
1 /* -*- C -*- */
2 /*
3  * Copyright (c) 2019-2020 Seagate Technology LLC and/or its Affiliates
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  * For any questions about this software or licensing,
18  * please email opensource@seagate.com or cortx-questions@seagate.com.
19  *
20  */
21 
22 
23 #pragma once
24 
25 #ifndef __MOTR_IEM_H__
26 #define __MOTR_IEM_H__
27 
39 };
40 
65 };
66 
75 };
76 
93 void m0_iem(const char* file, const char* function, int line,
94  const enum m0_motr_iem_severity sev_id,
95  const enum m0_motr_iem_module mod_id,
96  const enum m0_motr_iem_event evt_id,
97  const char* desc, ...);
98 
99 #define M0_MOTR_IEM(_sev_id, _mod_id, _evt_id) \
100  m0_iem(__FILE__, __FUNCTION__, __LINE__, \
101  _sev_id, _mod_id, _evt_id, NULL)
102 
103 #define M0_MOTR_IEM_DESC(_sev_id, _mod_id, _evt_id, _desc, ...) \
104  m0_iem(__FILE__, __FUNCTION__, __LINE__, \
105  _sev_id, _mod_id, _evt_id, _desc, __VA_ARGS__)
106 
107 
108 #endif // __MOTR_IEM_H__
m0_motr_iem_event
Definition: iem.h:67
m0_motr_iem_module
Definition: iem.h:61
struct m0_file file
Definition: di.c:36
m0_motr_iem_severity
Definition: iem.h:28
void m0_iem(const char *file, const char *function, int line, const enum m0_motr_iem_severity sev_id, const enum m0_motr_iem_module mod_id, const enum m0_motr_iem_event evt_id, const char *desc,...)
Definition: iem.c:58