71 for (
const GList *sIter = graph->
synapses; sIter != NULL;
72 sIter = sIter->next) {
77 for (
const GList *aIter = synapse->
actions; aIter != NULL;
78 aIter = aIter->next) {
126 GString *pending = NULL;
128 for (
const GList *lpc = synapse->
inputs; lpc != NULL; lpc = lpc->next) {
132 pcmk__add_word(&pending, 1024,
ID(
input->xml));
137 }
else if (find_graph_action_by_id(graph,
input->id) != NULL) {
139 pcmk__add_word(&pending, 1024,
ID(
input->xml));
147 log_unresolved_inputs(
unsigned int log_level,
pcmk__graph_t *graph,
150 for (GList *lpc = synapse->
inputs; lpc != NULL; lpc = lpc->next) {
155 if (find_graph_action_by_id(graph,
input->id) == NULL) {
157 " * [Input %2d]: Unresolved dependency %s op %s%s%s",
171 synapse_state_str(synapse),
172 actiontype2text(
action->type), key);
175 "[Action %4d]: %-50s%s%s (priority: %d, waiting: %s)",
185 GString *g_pending = NULL;
186 const char *pending =
"none";
189 g_pending = synapse_pending_inputs(graph, synapse);
191 if (g_pending != NULL) {
192 pending = (
const char *) g_pending->str;
196 for (GList *lpc = synapse->
actions; lpc != NULL; lpc = lpc->next) {
197 log_synapse_action(log_level, synapse,
201 if (g_pending != NULL) {
202 g_string_free(g_pending, TRUE);
206 log_unresolved_inputs(log_level, graph, synapse);
213 log_synapse(log_level, NULL,
action->synapse);
219 if ((graph == NULL) || (graph->
num_actions == 0)) {
226 do_crm_log(log_level,
"Graph %d with %d actions:" 227 " batch-limit=%d jobs, network-delay=%ums",
231 for (GList *lpc = graph->
synapses; lpc != NULL; lpc = lpc->next) {
const char * pcmk__graph_status2text(enum pcmk__graph_status state)
enum crm_ais_msg_types type
#define XML_LRM_ATTR_TASK_KEY
#define crm_debug(fmt, args...)
const char * crm_element_value(const xmlNode *data, const char *name)
Retrieve the value of an XML attribute.
#define do_crm_log(level, fmt, args...)
Log a message.
char * crm_strdup_printf(char const *format,...) G_GNUC_PRINTF(1
#define pcmk_is_set(g, f)
Convenience alias for pcmk_all_flags_set(), to check single flag.
Wrappers for and extensions to libxml2.
void pcmk__log_graph_action(int log_level, pcmk__graph_action_t *action)
void pcmk__log_graph(unsigned int log_level, pcmk__graph_t *graph)
#define XML_LRM_ATTR_TARGET