70 for (
const GList *synapse_iter = graph->
synapses;
71 synapse_iter != NULL; synapse_iter = synapse_iter->next) {
75 for (
const GList *action_iter = synapse->
actions;
76 action_iter != NULL; action_iter = action_iter->next) {
122 GString *pending = NULL;
124 for (
const GList *lpc = synapse->
inputs; lpc != NULL; lpc = lpc->next) {
128 pcmk__add_word(&pending, 1024, pcmk__xe_id(
input->xml));
133 }
else if (find_graph_action_by_id(graph,
input->id) != NULL) {
135 pcmk__add_word(&pending, 1024, pcmk__xe_id(
input->xml));
143 log_unresolved_inputs(
unsigned int log_level,
pcmk__graph_t *graph,
146 for (GList *lpc = synapse->
inputs; lpc != NULL; lpc = lpc->next) {
151 if (find_graph_action_by_id(graph,
input->id) == NULL) {
153 " * [Input %2d]: Unresolved dependency %s op %s%s%s",
167 synapse_state_str(synapse),
168 actiontype2text(
action->type), key);
171 "[Action %4d]: %-50s%s%s (priority: %d, waiting: %s)",
181 GString *g_pending = NULL;
182 const char *pending =
"none";
185 g_pending = synapse_pending_inputs(graph, synapse);
187 if (g_pending != NULL) {
188 pending = (
const char *) g_pending->str;
192 for (GList *lpc = synapse->
actions; lpc != NULL; lpc = lpc->next) {
193 log_synapse_action(log_level, synapse,
197 if (g_pending != NULL) {
198 g_string_free(g_pending, TRUE);
202 log_unresolved_inputs(log_level, graph, synapse);
209 log_synapse(log_level, NULL,
action->synapse);
215 if ((graph == NULL) || (graph->
num_actions == 0)) {
224 "network-delay=%ums",
228 for (GList *lpc = graph->
synapses; lpc != NULL; lpc = lpc->next) {
#define PCMK__XA_OPERATION_KEY
const char * pcmk__graph_status2text(enum pcmk__graph_status state)
enum crm_ais_msg_types type
#define PCMK__META_ON_NODE
#define PCMK_OPT_BATCH_LIMIT
#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)