proc-watchdog: correct the change in the processing parts for each dbus signal 68/232868/1
authorHyotaek Shim <hyotaek.shim@samsung.com>
Fri, 8 May 2020 05:19:05 +0000 (14:19 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Fri, 8 May 2020 05:19:10 +0000 (14:19 +0900)
It was an old bug even though there is no big impact.
"freeze" signal has both type and pid,
and "suspend" signal has no param.
But it was reversed from the beginning and
an unnecessary error log was continuously being printed in the journal.

Change-Id: I964c99a04c55ec104148e954782a3069e835f0ae
Signed-off-by: ByungSoo Kim <bs1770.kim@samsung.com>
Change-Id: I244b637e62916fa5560ca27614aa8def3a4c3dca
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
src/proc-stat/proc-watchdog.c

index b7d1612..504e218 100644 (file)
@@ -164,7 +164,7 @@ static void proc_watchdog_wakeup(GVariant *params)
        }
 }
 
-static void proc_watchdog_suspend(GVariant *params)
+static void proc_watchdog_freeze(GVariant *params)
 {
        int pid = -1, type = -1;
        unsigned int timeout = 0;
@@ -180,7 +180,7 @@ static void proc_watchdog_suspend(GVariant *params)
        proc_update_watchdog(wai, timeout);
 }
 
-static void proc_watchdog_freeze(GVariant *params)
+static void proc_watchdog_suspend(GVariant *params)
 {
        GSList *iter = NULL;
        struct watchdog_app_info *wai = NULL;