Bump version to fix build issue
[profile/ivi/telephony-daemon.git] / src / monitor.c
index cd32615..9981143 100644 (file)
@@ -35,6 +35,9 @@
 #include <server.h>
 #include <hal.h>
 #include <queue.h>
+#include <storage.h>
+#include <communicator.h>
+#include <user_request.h>
 
 #include "monitor.h"
 
@@ -67,13 +70,6 @@ static void _monitor_plugin(Server *s)
                        free(str);
 
                msg(" - addr: %p", p);
-               msg(" - ref_hal: %p", tcore_plugin_ref_hal(p));
-               if (tcore_plugin_ref_hal(p)) {
-                       str = tcore_hal_get_name(tcore_plugin_ref_hal(p));
-                       msg(" - ref_hal_name: %s", str);
-                       if (str)
-                               free(str);
-               }
                msg(" - userdata: %p", tcore_plugin_ref_user_data(p));
                msg("");
 
@@ -86,7 +82,6 @@ static void _monitor_storage(Server *s)
 {
        GSList *list;
        Storage *strg;
-       char *str;
 
        msg("-- Storages --");
 
@@ -135,6 +130,7 @@ static void _monitor_hal(Server *s)
        TcoreHal *h;
        TcoreQueue *q;
        TcorePending *pending;
+       UserRequest *ur;
        char *str;
        int qlen;
        int i;
@@ -174,7 +170,11 @@ static void _monitor_hal(Server *s)
                msg("   queue_head: %p", g_queue_peek_head(q->gq));
                for (i = 0; i < qlen; i++) {
                        pending = g_queue_peek_nth(q->gq, i);
-                       msg("   [%02d] pending=%p, id=0x%x, ur=%p", i, pending, tcore_pending_get_id(pending), tcore_pending_ref_user_request(pending));
+                       ur = tcore_pending_ref_user_request(pending);
+                       msg("   [%02d] pending=%p, id=0x%x, ur=%p", i, pending, tcore_pending_get_id(pending), ur);
+                       if (ur) {
+                               msg("        ur request command = 0x%x", tcore_user_request_get_command(ur));
+                       }
                        data_len = 0;
                        data = tcore_pending_ref_request_data(pending, &data_len);
                        msg("        data=%p, data_len=%d", data, data_len);