Mode::ModeType type = parser->getModeType();
modeMap.insert(std::make_pair(modeName, std::make_tuple(path, type, hidden)));
- DBG("[%d] modeName : %s, modePath : %s, type : %d, hidden : %s", modeMap.size(), modeName.c_str(), path.c_str(), type, hidden? "true": "false");
+ DBG("[%zu] modeName : %s, modePath : %s, type : %d, hidden : %s", modeMap.size(), modeName.c_str(), path.c_str(), type, hidden? "true": "false");
}
int ModeManager::applyMode(const string &modeName, ClientPrivilege &priv, bool isTest)
}
modeMap.insert(std::make_pair(mode.getName(), std::make_tuple(filename, mode.getModeType(), false)));
- DBG("[%d] Register modeName : %s, modePath : %s, type : %d, hidden : false", modeMap.size(), mode.getName().c_str(), filename.c_str(), mode.getModeType());
+ DBG("[%zu] Register modeName : %s, modePath : %s, type : %d, hidden : false", modeMap.size(), mode.getName().c_str(), filename.c_str(), mode.getModeType());
return MODES_ERROR_NONE;
}
string fileFullPath = ruleDir + "/" + string(entry->d_name);
try {
parseActionRule(fileFullPath);
- DBG("Action Rule(size=%d) Load", ruleMap.size());
+ DBG("Action Rule(size=%zu) Load", ruleMap.size());
} catch (ModesEx &e) {
ERR("parseActionRule(%s) Fail(%s) : It will be ignored", fileFullPath.c_str(), e.what());
}
broker.piMapper.loadPlugins();
}
catch (ModesEx &e) {
- broker.piMapper.setPluginDir("../../lib/modes-plugins");
+ broker.piMapper.setPluginDir("../../.." MODES_PLUGIN_DEFAULT_DIR);
EXPECT_NO_THROW(broker.piMapper.loadPlugins());
}
broker.piMapper.loadPlugins();
}
catch (ModesEx &e) {
- broker.piMapper.setPluginDir("../../lib/modes-plugins");
+ broker.piMapper.setPluginDir("../../.." MODES_PLUGIN_DEFAULT_DIR);
EXPECT_NO_THROW(broker.piMapper.loadPlugins());
}