From: Chanwoo Choi Date: Mon, 12 Jun 2017 11:03:15 +0000 (+0900) Subject: pass: pmqos: Modify log when the received scenario is not supported X-Git-Tag: submit/tizen/20170614.020920~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9946aa5516aa25a96522ccdb5f44122eae3e0e2b;p=platform%2Fcore%2Fsystem%2Fpass.git pass: pmqos: Modify log when the received scenario is not supported 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 --- diff --git a/src/pass/pass-pmqos.c b/src/pass/pass-pmqos.c index e2dcbbb..1b58b33 100644 --- a/src/pass/pass-pmqos.c +++ b/src/pass/pass-pmqos.c @@ -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; }