#include <queue.h>
#include <storage.h>
#include <communicator.h>
+#include <user_request.h>
#include "monitor.h"
{
GSList *list;
Storage *strg;
- char *str;
msg("-- Storages --");
TcoreHal *h;
TcoreQueue *q;
TcorePending *pending;
+ UserRequest *ur;
char *str;
int qlen;
int i;
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);