void resrc_flow_print (resrc_flow_t *resrc_flow) { if (resrc_flow) { resrc_print_resource (resrc_flow->flow_resrc); if (resrc_flow_num_children (resrc_flow)) { resrc_flow_t *child = resrc_flow_list_first (resrc_flow->children); while (child) { resrc_flow_print (child); child = resrc_flow_list_next (resrc_flow->children); } } } }
void resrc_reqst_print (resrc_reqst_t *resrc_reqst) { if (resrc_reqst) { char *shared = resrc_reqst->exclusive ? "exclusive" : "shared"; printf ("%"PRId64" of %"PRId64" %s ", resrc_reqst->nfound, resrc_reqst->reqrd_qty, shared); resrc_print_resource (resrc_reqst->resrc); resrc_graph_req_print (resrc_reqst->g_reqs); if (resrc_reqst_num_children (resrc_reqst)) { resrc_reqst_t *child = resrc_reqst_list_first (resrc_reqst->children); while (child) { resrc_reqst_print (child); child = resrc_reqst_list_next (resrc_reqst->children); } } } }