power: Elaborate log about waiting confirm lag 12/316912/1
authorYoungjae Cho <y0.cho@samsung.com>
Wed, 27 Nov 2024 12:10:56 +0000 (21:10 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Wed, 18 Dec 2024 09:20:16 +0000 (18:20 +0900)
Appended description of how much time was spent for waiting reply
from state transition watchers. And down the log level from error
to warning as it anyway proceeds the following transition step.

Change-Id: I0a0df1551d7123eeacc8247a3793c103ead1b80d
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
src/power/power.c

index 877e05b3822389b9cc40fc654d509ce8edf049c4..8869ddfb6641cc373cab36c78a04729f455480d8 100644 (file)
@@ -138,8 +138,8 @@ static void cleanup_waiting_list(gpointer data)
 {
        struct change_state_wait *csw = (struct change_state_wait *) data;
 
-       _E("%s(pid=%d) hasn't confirmed wait_callback_id=%"PRIu64"(%s)",
-               csw->pi->comm, csw->pi->pid, csw->wait_callback_id, state_name(csw->state));
+       _W("%s(pid=%d) hasn't confirmed wait_callback_id=%"PRIu64"(%s) within %ds. Transition to the next state anyway.",
+               csw->pi->comm, csw->pi->pid, csw->wait_callback_id, state_name(csw->state), max_wait_timeout);
 
        if (kill(csw->pi->pid, 0) != 0) {
                _E("cleanup not existing process: %s(pid=%d)", csw->pi->comm, csw->pi->pid);