提交 f4417c50 编写于 作者: H Hubert Zhang 提交者: Huan Zhang

Fix warning of passing const to non-const parameter.

Function FaultInjectorIdentifierStringToEnum(faultName) pass a const
string to a non-const parameter, which cause a build warnig. But on the
second thought, we have supported injecting fault by fault name without
corresponding fault identifier, so it's better to use faultname instead
of fault enum identifier in the ereport.
上级 a40f04b8
......@@ -927,8 +927,8 @@ FaultInjector_LookupHashEntry(
if (entry == NULL) {
ereport(DEBUG5,
(errmsg("FaultInjector_LookupHashEntry() could not find fault injection hash entry identifier:'%d' ",
FaultInjectorIdentifierStringToEnum(faultName))));
(errmsg("FaultInjector_LookupHashEntry() could not find fault injection hash entry:'%s' ",
faultName)));
}
return entry;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册