pass: pmqos: Modify log when the received scenario is not supported 86/133486/4
authorChanwoo Choi <cw00.choi@samsung.com>
Mon, 12 Jun 2017 11:03:15 +0000 (20:03 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 12 Jun 2017 11:24:58 +0000 (20:24 +0900)
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>
src/pass/pass-pmqos.c

index e2dcbbb16d679e6f5f842661fd807c4710be025b..1b58b337ea2bbe1c2d36479bc5ee99c8ba7d6354 100644 (file)
@@ -121,14 +121,14 @@ int pass_notifier_pmqos_func(struct pass_policy *policy, void *data)
        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;
        }