Signed-off-by: Mika Laitio <lamikr@pilppa.org>
}
BusMessage::~BusMessage() {
- long cnt;
DataItemSequence *seq;
log_debug("\n");
seq = (DataItemSequence *)_dataItemSeq;
if (seq != NULL) {
- cnt = seq->length();
-/*
- DataItem *item;
-
- for (long ii = 0; ii < cnt; ii++) {
- item = seq[ii];
- log_debug("deleting BusMessage item:\n");
- printout_dataitem(ii, item);
- delete(item);
- }
-*/
delete(seq);
}
}
msg_rsp = new BusMessage(msg_req->get_type(&err_flg));
_listener->request_received(msg_req, msg_rsp);
seq = (DataItemSequence *)msg_rsp->_dataItemSeq;
- log_debug("msg_rsp length: %ld\n", seq->length());
+ log_debug("msg_rsp length: %u\n", seq->length());
msg_rsp->printout();
response_listener_param->receive_response_dataitem_sequence(*seq);
delete(msg_req);