- if (!rmp) {
- rmp = xzalloc(sizeof *rmp);
- rmp->mpid = ccm_mpid;
- hmap_insert(&cfm->x_remote_mps, &rmp->node, hash_mpid(ccm_mpid));
+ ds_put_format(&ds, "MPID %"PRIu16":%s%s\n", cfm->mpid,
+ cfm->fault ? " fault" : "",
+ cfm->recv_fault ? " recv_fault" : "");
+
+ ds_put_format(&ds, "\tinterval: %dms\n", cfm->ccm_interval_ms);
+ ds_put_format(&ds, "\tnext CCM tx: %lldms\n",
+ timer_msecs_until_expired(&cfm->tx_timer));
+ ds_put_format(&ds, "\tnext fault check: %lldms\n",
+ timer_msecs_until_expired(&cfm->fault_timer));
+
+ ds_put_cstr(&ds, "\n");
+ HMAP_FOR_EACH (rmp, node, &cfm->remote_mps) {
+ ds_put_format(&ds, "Remote MPID %"PRIu16": %s\n", rmp->mpid,
+ rmp->fault ? "fault" : "");
+ ds_put_format(&ds, "\trecv since check: %s",
+ rmp->recv ? "true" : "false");