pass: pmqos: Fix the svace warning 31/149731/1 accepted/tizen/4.0/unified/20170919.170914 accepted/tizen/unified/20170915.194627 submit/tizen/20170915.013740 submit/tizen_4.0/20170915.014015
authorChanwoo Choi <cw00.choi@samsung.com>
Wed, 13 Sep 2017 04:21:58 +0000 (13:21 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 13 Sep 2017 04:21:58 +0000 (13:21 +0900)
This patch fixes the following svace warning.

[Warning Info]
WID:31612805 locked has enum type which is not isomorphic with boolean type,
however it is used as a boolean expression

Change-Id: I428750f3b667b0178b8886976a2d34e4b906f5b6
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
src/pass/pass-pmqos.c

index c8d2d82b36ec6d16a23d004bc06f6ed4ea68ae87..fd338e9084a14448d4bb54bf366b90a1dd977f40 100644 (file)
@@ -146,8 +146,8 @@ int pass_notifier_pmqos_func(struct pass_policy *policy, void *data)
         * if state is same as existing state
         */
        if (scn->locked == locked) {
-               _E("'%s' scenario is already %s for '%s' resource\n",
-                               name, locked ? "Locked" : "Unlocked",
+               _E("'%s' scenario is already %s for '%s' resource\n", name,
+                               (locked == PASS_ON) ? "Locked" : "Unlocked",
                                cdata->res_name);
                return 0;
        }