m->status = NTOH__u32(m->status);
m->type = NTOH__u32(m->type);
m->bufcount = NTOH__u32(m->bufcount);
- m->last_rcvd = NTOH__u64(m->last_rcvd);
+ m->last_xid = NTOH__u64(m->last_xid);
m->last_committed = NTOH__u64(m->last_committed);
required_len = size_round(sizeof(*m) + m->bufcount * sizeof(__u32));
}
if (n < 0 || n >= m->bufcount) {
- CERROR("referencing bad sub buffer!\n");
+ CERROR("referencing bad sub buffer (requested %d, count is "
+ "%d)!\n", n, m->bufcount);
LBUG();
return NULL;
}