71 for (GList *sIter = graph->
synapses; sIter != NULL; sIter = sIter->next) {
74 for (GList *aIter = synapse->
actions; aIter != NULL;
75 aIter = aIter->next) {
122 GString *pending = NULL;
124 for (
const GList *lpc = synapse->
inputs; lpc != NULL; lpc = lpc->next) {
128 pcmk__add_word(&pending, 1024,
ID(
input->xml));
133 }
else if (find_graph_action_by_id(graph,
input->id) != NULL) {
135 pcmk__add_word(&pending, 1024,
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)) {
222 do_crm_log(log_level,
"Graph %d with %d actions:" 223 " batch-limit=%d jobs, network-delay=%ums",
227 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