fmt 74 crmd/fsa.c #define do_dot_log(fmt, args...) crm_trace( fmt, ##args) fmt 129 include/crm/common/logging.h # define do_crm_log(level, fmt, args...) \ fmt 130 include/crm/common/logging.h qb_log_from_external_source(__func__, __FILE__, fmt, level, __LINE__, 0 , ##args) fmt 139 include/crm/common/logging.h # define do_crm_log_unlikely(level, fmt, args...) do { \ fmt 142 include/crm/common/logging.h trace_cs = qb_log_callsite_get(__func__, __FILE__, fmt, level, __LINE__, 0); \ fmt 146 include/crm/common/logging.h __func__, __FILE__, fmt, level, __LINE__, 0 , ##args); \ fmt 196 include/crm/common/logging.h # define do_crm_log_alias(level, file, function, line, fmt, args...) do { \ fmt 198 include/crm/common/logging.h qb_log_from_external_source(function, file, fmt, level, line, 0 , ##args); \ fmt 200 include/crm/common/logging.h printf(fmt "\n" , ##args); \ fmt 213 include/crm/common/logging.h # define do_crm_log_always(level, fmt, args...) qb_log(level, fmt , ##args) fmt 226 include/crm/common/logging.h # define crm_perror(level, fmt, args...) do { \ fmt 230 include/crm/common/logging.h fprintf(stderr, fmt ": %s (%d)\n" , ##args, err, errno); \ fmt 232 include/crm/common/logging.h do_crm_log(level, fmt ": %s (%d)" , ##args, err, errno); \ fmt 235 include/crm/common/logging.h # define crm_log_tag(level, tag, fmt, args...) do { \ fmt 239 include/crm/common/logging.h trace_tag_cs = qb_log_callsite_get(__func__, __FILE__, fmt, level, __LINE__, converted_tag); \ fmt 242 include/crm/common/logging.h qb_log_from_external_source(__func__, __FILE__, fmt, level, \ fmt 247 include/crm/common/logging.h # define crm_crit(fmt, args...) qb_logt(LOG_CRIT, 0, fmt , ##args) fmt 248 include/crm/common/logging.h # define crm_err(fmt, args...) qb_logt(LOG_ERR, 0, fmt , ##args) fmt 249 include/crm/common/logging.h # define crm_warn(fmt, args...) qb_logt(LOG_WARNING, 0, fmt , ##args) fmt 250 include/crm/common/logging.h # define crm_notice(fmt, args...) qb_logt(LOG_NOTICE, 0, fmt , ##args) fmt 251 include/crm/common/logging.h # define crm_info(fmt, args...) qb_logt(LOG_INFO, 0, fmt , ##args) fmt 253 include/crm/common/logging.h # define crm_debug(fmt, args...) do_crm_log_unlikely(LOG_DEBUG, fmt , ##args) fmt 254 include/crm/common/logging.h # define crm_trace(fmt, args...) do_crm_log_unlikely(LOG_TRACE, fmt , ##args) fmt 67 include/crm/common/xml_internal.h #define CRM_XML_LOG_BASE(priority, dechunk, postemit, prefix, fmt, ap) \ fmt 70 include/crm/common/xml_internal.h qb_log_from_external_source_va(__FUNCTION__, __FILE__, (fmt), \ fmt 79 include/crm/common/xml_internal.h CXLB_len = vasprintf(&CXLB_buf, (fmt), (ap)); \ fmt 24 include/crm/pengine/internal.h # define pe_rsc_info(rsc, fmt, args...) crm_log_tag(LOG_INFO, rsc ? rsc->id : "<NULL>", fmt, ##args) fmt 25 include/crm/pengine/internal.h # define pe_rsc_debug(rsc, fmt, args...) crm_log_tag(LOG_DEBUG, rsc ? rsc->id : "<NULL>", fmt, ##args) fmt 26 include/crm/pengine/internal.h # define pe_rsc_trace(rsc, fmt, args...) crm_log_tag(LOG_TRACE, rsc ? rsc->id : "<NULL>", fmt, ##args) fmt 28 include/crm/pengine/internal.h # define pe_err(fmt...) { was_processing_error = TRUE; crm_config_error = TRUE; crm_err(fmt); } fmt 29 include/crm/pengine/internal.h # define pe_warn(fmt...) { was_processing_warning = TRUE; crm_config_warning = TRUE; crm_warn(fmt); } fmt 30 include/crm/pengine/internal.h # define pe_proc_err(fmt...) { was_processing_error = TRUE; crm_err(fmt); } fmt 31 include/crm/pengine/internal.h # define pe_proc_warn(fmt...) { was_processing_warning = TRUE; crm_warn(fmt); } fmt 256 include/crm_internal.h # define crm_config_err(fmt...) { crm_config_error = TRUE; crm_err(fmt); } fmt 257 include/crm_internal.h # define crm_config_warn(fmt...) { crm_config_warning = TRUE; crm_warn(fmt); } fmt 144 lib/ais/utils.h # define do_ais_log(level, fmt, args...) do { \ fmt 148 lib/ais/utils.h log_printf(LOG_DEBUG, "debug%d: %s: " fmt, \ fmt 151 lib/ais/utils.h log_printf(level, "%s: %s: " fmt, level2char(level), \ fmt 156 lib/ais/utils.h # define ais_perror(fmt, args...) log_printf( \ fmt 157 lib/ais/utils.h LOG_ERR, "%s: " fmt ": (%d) %s", \ fmt 160 lib/ais/utils.h # define ais_crit(fmt, args...) do_ais_log(LOG_CRIT, fmt , ##args) fmt 161 lib/ais/utils.h # define ais_err(fmt, args...) do_ais_log(LOG_ERR, fmt , ##args) fmt 162 lib/ais/utils.h # define ais_warn(fmt, args...) do_ais_log(LOG_WARNING, fmt , ##args) fmt 163 lib/ais/utils.h # define ais_notice(fmt, args...) do_ais_log(LOG_NOTICE, fmt , ##args) fmt 164 lib/ais/utils.h # define ais_info(fmt, args...) do_ais_log(LOG_INFO, fmt , ##args) fmt 165 lib/ais/utils.h # define ais_debug(fmt, args...) do_ais_log(LOG_DEBUG, fmt , ##args) fmt 166 lib/ais/utils.h # define ais_trace(fmt, args...) do_ais_log(LOG_DEBUG+1, fmt , ##args) fmt 38 lib/cib/cib_attrs.c #define attr_msg(level, fmt, args...) do { \ fmt 40 lib/cib/cib_attrs.c printf(fmt"\n", ##args); \ fmt 42 lib/cib/cib_attrs.c do_crm_log(level, fmt , ##args); \ fmt 192 lib/common/logging.c char fmt[FMT_MAX]; fmt 200 lib/common/logging.c snprintf(fmt + offset, FMT_MAX - offset, "%%t [%lu] %s %10s: ", fmt 203 lib/common/logging.c offset += snprintf(fmt + offset, FMT_MAX - offset, "%%t [%lu] %10s: ", fmt 209 lib/common/logging.c offset += snprintf(fmt + offset, FMT_MAX - offset, "%%g %%-7p: %%b"); fmt 212 lib/common/logging.c offset += snprintf(fmt + offset, FMT_MAX - offset, "(%%-12f:%%5l %%g) %%-7p: %%n:\t%%b"); fmt 214 lib/common/logging.c offset += snprintf(fmt + offset, FMT_MAX - offset, "%%g %%-7p: %%n:\t%%b"); fmt 218 lib/common/logging.c qb_log_format_set(method, fmt); fmt 80 lib/common/schemas.c xml_log(int priority, const char *fmt, ...) fmt 84 lib/common/schemas.c xml_log(int priority, const char *fmt, ...) fmt 88 lib/common/schemas.c va_start(ap, fmt); fmt 90 lib/common/schemas.c CRM_XML_LOG_BASE(priority, FALSE, 0, NULL, fmt, ap); fmt 699 lib/common/schemas.c cib_upgrade_err(void *ctx, const char *fmt, ...) fmt 703 lib/common/schemas.c cib_upgrade_err(void *ctx, const char *fmt, ...) fmt 707 lib/common/schemas.c va_start(ap, fmt); fmt 708 lib/common/schemas.c CRM_XML_LOG_BASE(LOG_WARNING, TRUE, 0, "CIB upgrade: ", fmt, ap); fmt 124 lib/common/xml.c #define buffer_print(buffer, max, offset, fmt, args...) do { \ fmt 127 lib/common/xml.c rc = snprintf((buffer) + (offset), (max) - (offset), fmt, ##args); \ fmt 1398 lib/common/xml.c const char *fmt = NULL; fmt 1419 lib/common/xml.c fmt = crm_element_value(patchset, "format"); fmt 1424 lib/common/xml.c "Diff: --- %d.%d.%d %s", del[0], del[1], del[2], fmt); fmt 2723 lib/common/xml.c crm_xml_err(void *ctx, const char *fmt, ...) fmt 2727 lib/common/xml.c crm_xml_err(void *ctx, const char *fmt, ...) fmt 2737 lib/common/xml.c va_start(ap, fmt); fmt 2742 lib/common/xml.c "XML Error: ", fmt, ap); fmt 2744 lib/common/xml.c CRM_XML_LOG_BASE(LOG_ERR, TRUE, 0, "XML Error: ", fmt, ap); fmt 1209 lib/fencing/st_client.c stonith_plugin(int priority, const char *fmt, ...) __attribute__((__format__ (__printf__, 2, 3))); fmt 2549 lib/fencing/st_client.c #define api_log(level, fmt, args...) syslog(level, "%s: "fmt, __FUNCTION__, args) fmt 72 lib/pengine/unpack.h # define status_printw(fmt, args...) printw(fmt, ##args) fmt 74 lib/pengine/unpack.h # define status_printw(fmt, args...) \ fmt 76 lib/pengine/unpack.h do_crm_log(LOG_WARNING, fmt, ##args); fmt 79 lib/pengine/unpack.h # define status_print(fmt, args...) \ fmt 82 lib/pengine/unpack.h fprintf(stream, fmt, ##args); \ fmt 84 lib/pengine/unpack.h status_printw(fmt, ##args); \ fmt 87 lib/pengine/unpack.h fprintf(stream, fmt, ##args); \ fmt 90 lib/pengine/unpack.h fprintf(stream, fmt, ##args); \ fmt 93 lib/pengine/unpack.h do_crm_log(log_level, fmt, ##args); \ fmt 115 lib/pengine/unpack.h #define pe_warn_once(pe_wo_bit, fmt...) do { \ fmt 118 lib/pengine/unpack.h crm_warn(fmt); \ fmt 120 lib/pengine/unpack.h pe_warn(fmt); \ fmt 2159 pengine/native.c #define log_change(a, fmt, args...) do { \ fmt 2161 pengine/native.c printf(" * "fmt" \tdue to %s\n", ##args, a->reason); \ fmt 2163 pengine/native.c crm_notice(fmt" \tdue to %s", ##args, a->reason); \ fmt 2165 pengine/native.c printf(" * "fmt"\n", ##args); \ fmt 2167 pengine/native.c crm_notice(fmt, ##args); \ fmt 58 pengine/ptest.c #define dot_write(fmt...) if(dot_strm != NULL) { \ fmt 59 pengine/ptest.c fprintf(dot_strm, fmt); \ fmt 62 pengine/ptest.c crm_debug(DOT_PREFIX""fmt); \ fmt 115 tools/crm_diff.c const char *fmt = NULL; fmt 119 tools/crm_diff.c fmt = crm_element_value(patch, "format"); fmt 123 tools/crm_diff.c crm_info("Patch: --- %d.%d.%d %s", del[0], del[1], del[2], fmt); fmt 180 tools/crm_mon.c # define print_as(fmt, args...) if (output_format == mon_output_console) { \ fmt 181 tools/crm_mon.c printw(fmt, ##args); \ fmt 185 tools/crm_mon.c fprintf(stdout, fmt, ##args); \ fmt 188 tools/crm_mon.c # define print_as(fmt, args...) fprintf(stdout, fmt, ##args); fmt 844 tools/crm_mon.c #define mon_warn(fmt...) do { \ fmt 850 tools/crm_mon.c print_as(fmt); \ fmt 106 tools/crm_resource.h #define CMD_ERR(fmt, args...) do { \ fmt 107 tools/crm_resource.h crm_warn(fmt, ##args); \ fmt 108 tools/crm_resource.h fprintf(stderr, fmt"\n", ##args); \ fmt 47 tools/crm_simulate.c #define quiet_log(fmt, args...) do { \ fmt 49 tools/crm_simulate.c printf(fmt , ##args); \ fmt 60 tools/crm_ticket.c #define CMD_ERR(fmt, args...) do { \ fmt 61 tools/crm_ticket.c crm_warn(fmt, ##args); \ fmt 62 tools/crm_ticket.c fprintf(stderr, fmt, ##args); \ fmt 47 tools/fake_transition.c #define quiet_log(fmt, args...) do { \ fmt 49 tools/fake_transition.c crm_trace(fmt, ##args); \ fmt 51 tools/fake_transition.c printf(fmt , ##args); \