blob: 4f1ce155bd8fcdfa1ee7ca6d3f012420e1c3936f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
## Note that this file is not auto generated, it is what generates the
## elog-lookup.cpp file
// This file was autogenerated. Do not edit!
// See elog-gen.py for more details
#include <map>
#include <vector>
#include <phosphor-logging/log.hpp>
namespace phosphor
{
namespace logging
{
std::map<std::string,std::vector<std::string>> g_errMetaMap = {
% for a in errors:
<%
meta_list = []
if(a in meta):
meta_list = meta[a]
%>\
<% meta_string = '\",\"'.join(meta_list) %> \
{"${a}",{"${meta_string}"}},
% endfor
};
std::map<std::string,level> g_errLevelMap = {
% for a in errors:
{"${a}",level::${error_lvl[a]}},
% endfor
};
} // namespace logging
} // namespace phosphor
|