Bump version to fix build issue
[profile/ivi/telephony-daemon.git] / src / monitor.c
index 6453e15..9981143 100644 (file)
@@ -37,6 +37,7 @@
 #include <queue.h>
 #include <storage.h>
 #include <communicator.h>
+#include <user_request.h>
 
 #include "monitor.h"
 
@@ -81,7 +82,6 @@ static void _monitor_storage(Server *s)
 {
        GSList *list;
        Storage *strg;
-       char *str;
 
        msg("-- Storages --");
 
@@ -130,6 +130,7 @@ static void _monitor_hal(Server *s)
        TcoreHal *h;
        TcoreQueue *q;
        TcorePending *pending;
+       UserRequest *ur;
        char *str;
        int qlen;
        int i;
@@ -169,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);