When the display state changes, it was hard to know
which process requested state changing with only pid.
To provide more meaningful log information,
process name logging is added.
Change-Id: Ibcb7033efc4c966f0c152ee91dfaa68a4b27556a
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
*/
enum syscommon_deviced_display_state next;
const char *state_name = NULL;
+ char pname[PATH_MAX];
int ret;
ret = syscommon_plugin_deviced_display_proc_change_state(cond, pid);
next = GET_COND_STATE(cond);
display_state_get_name(next, &state_name);
- _I("Change process(%d) state to %s.", pid, state_name);
+ display_misc_get_process_name(pid, pname);
+ _I("Process %s(%d) changes display state to %s.", pname, pid, state_name);
switch (next) {
case SYSCOMMON_DEVICED_DISPLAY_STATE_ON: