Add event name to SetSpeedEvent data
Change-Id: Ida95790d78d016952da7d2a2afa0940edbe0aa7b
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/control/templates/fan_zone_defs.mako.cpp b/control/templates/fan_zone_defs.mako.cpp
index e64bff5..eaac9e3 100644
--- a/control/templates/fan_zone_defs.mako.cpp
+++ b/control/templates/fan_zone_defs.mako.cpp
@@ -99,6 +99,7 @@
%if ('pc' in event) and \
(event['pc'] is not None):
SetSpeedEvent{
+ "${event['pc']['pcname']}",
Group{
%for group in event['pc']['pcgrps']:
%for member in group['members']:
@@ -140,12 +141,14 @@
%endfor
std::vector<SetSpeedEvent>{
%for pcevt in event['pc']['pcevts']:
- SetSpeedEvent{\
+ SetSpeedEvent{
+ "${pcevt['name']}",\
${indent(genSSE(event=pcevt), 6)}\
},
%endfor
%else:
- SetSpeedEvent{\
+ SetSpeedEvent{
+ "${event['name']}",\
${indent(genSSE(event=event), 6)}
%endif
%if ('pc' in event) and (event['pc'] is not None):