From 997b76bbe28276effb8f9d78f8537610951e1c5d Mon Sep 17 00:00:00 2001 From: Junghoon Park Date: Wed, 9 Aug 2017 16:53:56 +0900 Subject: [PATCH] Add some logs to debug key-block issue Change-Id: I644cae1a72248e64bc2b1ce72be573cb797244bb Signed-off-by: Junghoon Park --- src/aul_window.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/aul_window.c b/src/aul_window.c index 068d3d0..f809b22 100644 --- a/src/aul_window.c +++ b/src/aul_window.c @@ -284,6 +284,7 @@ API int aul_window_get_focused_pid(pid_t *pid) GVariant *body; gint32 focused_pid = 0; + _W("call aul_window_get_focused_pid()"); if (system_conn == NULL) { conn = g_bus_get_sync(G_BUS_TYPE_SYSTEM, NULL, &err); if (conn == NULL) { @@ -307,6 +308,7 @@ API int aul_window_get_focused_pid(pid_t *pid) G_DBUS_SEND_MESSAGE_FLAGS_NONE, -1, NULL, NULL, &err); if (!reply) { + _E("reply is null"); if (err != NULL) { _E("Failed to get info [%s]", err->message); g_error_free(err); @@ -318,11 +320,13 @@ API int aul_window_get_focused_pid(pid_t *pid) body = g_dbus_message_get_body(reply); if (!body) { res = -1; + _E("Body is null"); goto out; } g_variant_get(body, "(i)", &focused_pid); *pid = (pid_t)focused_pid; + _W("result = %d", focused_pid); out: if (msg) g_object_unref(msg); -- 2.7.4