This patch modifies the log when the received scenario is not supported
as following:
1. Remove 'Lock' and 'Unlock' word from scenario name.
- Before : "Unknown scenario (SIOPLock) for 'cpu0' resource"
- After : "Unknown scenario (SIOP) for 'cpu0' resource"
2. Use 'Not supported' instead of 'cannot support'.
- Before : "cannot support 'AppLaunch' scenario for 'cpu0' resource"
- After : "Not supported 'AppLaunch' scenario for 'cpu0' resource"
Change-Id: Ibeeb0f2fba3fc46e27fc1e2b16b74d167d83c3e7
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
index = find_scenario_index(scenario, name);
if (index < 0) {
_W("Unknown scenario (%s) for '%s' resource\n",
- data, cdata->res_name);
+ name, cdata->res_name);
return -EINVAL;
}
scn = &scenario->list[index];
/* Check the state of each scenario whether to support or not */
if (scn->state != PASS_ON) {
- _W("cannot support '%s' scenario for '%s' resource\n",
+ _W("Not supported '%s' scenario for '%s' resource\n",
name, cdata->res_name);
return 0;
}