+ DEBUG(E_USER_XBEE, "%s");
+ }
+}
+
+static void hexdump_msg(const char *title, const struct xbee_msg *msg)
+{
+ unsigned i;
+
+ DEBUG(E_USER_XBEE, "dump %s", title);
+ for (i = 0; i < msg->iovlen; i++) {
+ DEBUG(E_USER_XBEE, "iovec %d at %p, len=%d", i,
+ msg->iov[i].buf, msg->iov[i].len);
+ __hexdump(msg->iov[i].buf, msg->iov[i].len);